daryazyatina Junior Ukraine, 20170725 15:12 (edited by daryazyatina on 20170725 15:32) Posting: # 17608 Views: 669 

Good day, guys! I have some data about concentration and time of this concentration from the literature data. I want to compare the data from WinNonLin with data from RStudio. This .csv file I imported in RStudio. ID,TIME,DV and this code I used to calculate the pharmacokinetic parameters: ncappc(obsFile=system.file("extdata","concentrationb2.csv", package = "ncappc"), I need calculate elimination constant with time points from 5h to 24h. After all RStudio calculate pharmacokinetic parameters BUT the elimination constant is incorrectly calculated. What I do wrong? Edit: Category changed; see also this post #1. [Helmut] 
Helmut Hero Vienna, Austria, 20170725 17:48 @ daryazyatina Posting: # 17611 Views: 523 

Hi Darya, » I want to compare the data from WinNonLin with data from RStudio. » ncappc(obsFile=system.file("extdata","concentrationb2.csv", package = "ncappc"),
» concUnit = "ng/mL", I used this code in the Rconsole
ncappc PHX/WNL Hence, seemingly the argument LambdaExclude did not work as expected. When I tried LambdaTimeRange=c(5,24) instead, I got:Error in match(ntime[ntime >= Lambda_z_lower]) : » I need calculate elimination constant with time points from 5h to 24h. Why do you want to do that? You would go from a good and reasonable fit (distribution/elimination) to a completely wrong one: » After all RStudio calculate pharmacokinetic parameters BUT the elimination constant is incorrectly calculated. In this case it is good that ncappc did not observe your attempts. However, according to the documentation it should be possible to specify a timerange. Contact the authors. Mats Karlsson is a nice guy.BTW, I strongly recommend to abandon the lousy linear trapezoidal method (positively biased AUC for decreasing concentrations). Better to use the argument method="linearlog" in the future.— All the best, Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. ☼ Science Quotes 
daryazyatina Junior Ukraine, 20170726 08:09 @ Helmut Posting: # 17616 Views: 477 

Thank you, Helmut, for your answer. » Hence, seemingly the argument LambdaExclude did not work as expected. When I »tried LambdaTimeRange=c(5,24) instead, I got:» Error in match(ntime[ntime >= Lambda_z_lower]) :
» argument "table" is missing, with no default I have the same problems with using LambdaTimeRange=c(5,24) , so I used LambdaExclude . I will write to the authors. I hope they fix this problem. 