daryazyatina ☆ Ukraine, 2017-07-25 17:12 (2830 d 05:49 ago) Posting: # 17608 Views: 5,234 |
|
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 ★★★ ![]() ![]() Vienna, Austria, 2017-07-25 19:48 (2830 d 03:13 ago) @ daryazyatina Posting: # 17611 Views: 4,429 |
|
Hi Darya, ❝ I want to compare the data from WinNonLin with data from RStudio. ❝ ❝ timeUnit = "h", ❝ doseUnit = "g", ❝ adminType = "extravascular", ❝ doseType = "ns", ❝ method = "linear", ❝ printOut = FALSE, ❝ psnOut=FALSE, ❝ noPlot=TRUE, ❝ LambdaExclude = c(0,0.33,0.66,1,1.33,1.66,2,2.5,3,3.5,4) ❝ ) I used this code in the R-console
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 time-range. 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="linear-log" in the future.— Dif-tor heh smusma 🖖🏼 Довге життя Україна! ![]() Helmut Schütz ![]() The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
daryazyatina ☆ Ukraine, 2017-07-26 10:09 (2829 d 12:52 ago) @ Helmut Posting: # 17616 Views: 4,269 |
|
Thank you, Helmut, for your answer. ❝ Hence, seemingly the argument ❝ 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. |