sury ★ India, 2019-11-20 11:21 (1892 d 00:26 ago) Posting: # 20832 Views: 8,064 |
|
Dear Forum members, Greetings for the day.... I am trying to estimate the Pharmacokinetic parameters using PKNCA package with the help of documents in R. i have installed the package PKNCA and while using i am facing the below difficulty. conc_obj <- PKNCAconc(X003, Concentration~Time|Subject) i am getting the error "Rows that are not unique per group and time (column names: Time) found within concentration data" As we estimate the parameters based on period, i need to include the period parameter in the above code. but am nt able to do that. Where to place the Period in the above code? And i have tried to estimate the PK parameters using BEAR package. but it is not getting the same results as that of the WinNonlin Any help in this regards is highly appreciated |
Helmut ★★★ Vienna, Austria, 2019-11-20 11:27 (1892 d 00:21 ago) @ sury Posting: # 20833 Views: 6,640 |
|
Hi Sury, it is impossible for us to answer. Please provide your data for download somewhere (not in a post here). — Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
sury ★ India, 2019-11-20 12:01 (1891 d 23:47 ago) @ Helmut Posting: # 20835 Views: 6,587 |
|
❝ it is impossible for us to answer. Please provide your data for download somewhere (not in a post here). I have sent you data personally helmut. |
Helmut ★★★ Vienna, Austria, 2019-11-20 12:34 (1891 d 23:13 ago) @ sury Posting: # 20837 Views: 6,672 |
|
Hi Sury, ❝ I have sent you data personally helmut. I know and responded that you should find a webspace where you can upload it. Since your file is small, I make an exception and host it here. Download in CSV-format. My results in Phoenix 8.1 (lin-up/log-down trapezoidal, default settings for the estimation of λz): Subject Period Lambda_z AUClast AUCINF_pred C72 AUC72 I guess you want to assess AUC0–72 as primary metric. Since you have time deviations, I added C72 and AUC72 to the output. — Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
sury ★ India, 2019-11-20 13:09 (1891 d 22:39 ago) @ Helmut Posting: # 20838 Views: 6,617 |
|
Thanks for the reply helmut. I want to estimate the parameters using PKNCA Package. For that iam using the above data but when i am trying to run the script i am getting the error http://forum.bebac.at/mix_entry.php?id=20832 |
yjlee168 ★★★ Kaohsiung, Taiwan, 2019-11-20 15:35 (1891 d 20:13 ago) @ sury Posting: # 20840 Views: 6,642 |
|
Hi sury ❝ ... ❝ And i have tried to estimate the PK parameters using BEAR package. but it is not getting the same results as that of the WinNonlin Which method did you use for AUC calculation with bear? 'linear-up/log-down' or 'all linear' trapezoidal method? The default method in bear is 'linear-up/log-down'. The other issue to cause the difference is the method used to estimate lambda z. — All the best, -- Yung-jin Lee bear v2.9.2:- created by Hsin-ya Lee & Yung-jin Lee Kaohsiung, Taiwan https://www.pkpd168.com/bear Download link (updated) -> here |
sury ★ India, 2019-11-21 06:10 (1891 d 05:38 ago) @ yjlee168 Posting: # 20850 Views: 6,570 |
|
❝ Which method did you use for AUC calculation with bear? 'linear-up/log-down' or 'all linear' trapezoidal method? The default method in bear is 'linear-up/log-down'. I have use linear-up/log-down method for AUC calculation. below is the data generated in WinNonlin and R bear Package Subject Period R-AUCt R-AUCinf WinNonlin-AUCt WinNonlin-AUCinf ❝ The other issue to cause the difference is the method used to estimate lambda z. Adjusted R2 method has been used for the estimation of lambda z. Edit: Tabulators changed to spaces and BBcoded; see also this post #6. [Helmut] |
Helmut ★★★ Vienna, Austria, 2019-11-21 15:53 (1890 d 19:55 ago) @ sury Posting: # 20854 Views: 6,523 |
|
Hi Sury, which package did you use in R ( PKNCA or bear )? If the former, did you specify PKNCA.options(auc.method = "lin up/log down") ?Your results for WinNonlin look similar to what I got in PHX with the linear trapezoidal: Subject Period AUClast Why not identical? Which version of WinNonlin? Did you use the scheduled instead of the actual times? Let’s perform a manual calculation (subject 1, period 1): $$AUC_{lin}|_{t_1}^{t_2}=(t_2-t_1)\frac{C_1+C_2}{2}$$ $$AUC_{log}|_{t_1}^{t_2}=(t_2-t_1)\frac{C_2-C_1}{\log (\frac{C_2}{C_1})}$$ t C Ci≥Ci-1? AUCi (lin) Ci<Ci-1? AUCi (log) AUCi ✔— Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |
sury ★ India, 2019-11-22 08:23 (1890 d 03:25 ago) @ Helmut Posting: # 20858 Views: 6,433 |
|
❝ which package did you use in R ( i have calculate using Bear package ❝ Your results for WinNonlin look similar to what I got in PHX with the linear trapezoidal: Subject Period AUClast-R AUC last-Winnonlin Even i have got the same results in the bear package results when i tried all Linear method. the results are not matching after the decimals. The concern is it may impact the 90% CI in border range? is this difference after decimal point accepted? ❝ Why not identical? Which version of WinNonlin? Did you use the scheduled instead of the actual times? WinNonlin Version 6.4. Actual time was considered in calculation Thanks for the manual calculation provided. It helped me a lot Edit: Standard quotes restored; see also this post #8. [Helmut] |
Helmut ★★★ Vienna, Austria, 2019-11-22 12:22 (1889 d 23:26 ago) @ sury Posting: # 20859 Views: 6,894 |
|
Hi Sury, ❝ WinNonlin Version 6.4. AFAIK PHX6.4 is out of support – update. Are you trying to confuse us – mixed up R and WinNonlin in your table? I got identical results in the 64bit versions of Phoenix 6.3.0.395 (Mar 2012), 6.4.0.768 (Jul 2014), 7.0.0.2535 (Jun 2016), 8.0.0.3176 (Sep 2017), and 8.1.0.3530 (May 2018). 8.2 (Jun 2019) not installed yet. Subject Period lin linlog ❝ The concern is it may impact the 90% CI in border range? Unlikely, since T and R will be affected in the same way and it will mean out. ❝ is this difference after decimal point accepted? If (if!) the result is not correct (by comparing with a manual calculation by the formula), that’s a problem. Software not valid(ated). However, I got exactly the same results – both linear and lin-up/log-down – in bear and PKNCA (clumsy code at the end) like in Phoenix. Hence, I think that the problem lies in your installation or setup.❝ Thanks for the manual calculation provided. It helped me a lot RTFM. Given on page 56 (2|40) of the “Phoenix WinNonlin 6.4 User’s Guide” (Noncompartmental Analysis | AUC calculation and interpolation formulas). Concerning your OP: ❝ ❝ ❝ ❝ ❝ ❝ i am getting the error "Rows that are not unique per group and time (column names: Time) found within concentration data" Similar in Phoenix. If you sort only by Subject (i.e., not additionally by Period ) you would get:
PKNCA you need to group the data appropriately as well, i.e.,
R-code:
— Dif-tor heh smusma 🖖🏼 Довге життя Україна! Helmut Schütz The quality of responses received is directly proportional to the quality of the question asked. 🚮 Science Quotes |