Replies: 3 comments 2 replies
-
|
Thanks for the example data and code. What value were you expecting? |
Beta Was this translation helpful? Give feedback.
2 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
My guess is that you did not have a time 0 concentration in your concentration data. This gets a result for me. (The numbers are different, but given that Cmax differs, I guess the input data is not identical.) library(PKNCA)
#>
#> Attaching package: 'PKNCA'
#> The following object is masked from 'package:stats':
#>
#> filter
#The data----
data2_ncaCONC <-
data.frame(
USID = 1,
DV = c(0, 0.962, 0.7, 0.444, 0.303, 0.298),
MDV = 0,
TIME = c(0, 0.35, 0.7167, 1.6833, 3.1167, 21.55),
AMT = c(12403, rep(0, 5))
)
data2_ncaDOSE <- data2_ncaCONC[data2_ncaCONC$AMT > 0, ]
# The code ----
o_conc <- PKNCAconc(data2_ncaCONC,DV~TIME|USID)
o_dose <- PKNCAdose(data2_ncaDOSE,AMT~TIME|USID)
data_NCA <- PKNCAdata(o_conc, o_dose,
intervals=data.frame(start=0, # Change 1
end=24,
cmax=T,
cmin=T,
cav=T,
tmax=T,
half.life=F,
aucall=TRUE,
auclast=TRUE,
aucinf.pred=T,
aucinf.obs=T))
results_NCA <- pk.nca(data_NCA)
as.data.frame(results_NCA)
#> # A tibble: 19 × 6
#> USID start end PPTESTCD PPORRES exclude
#> <dbl> <dbl> <dbl> <chr> <dbl> <chr>
#> 1 1 0 24 auclast 7.08 <NA>
#> 2 1 0 24 aucall 7.08 <NA>
#> 3 1 0 24 cmax 0.962 <NA>
#> 4 1 0 24 cmin 0 <NA>
#> 5 1 0 24 tmax 0.35 <NA>
#> 6 1 0 24 tlast 21.6 <NA>
#> 7 1 0 24 clast.obs 0.298 <NA>
#> 8 1 0 24 cav 0.295 <NA>
#> 9 1 0 24 lambda.z 0.0246 <NA>
#> 10 1 0 24 r.squared 0.368 <NA>
#> 11 1 0 24 adj.r.squared 0.0522 <NA>
#> 12 1 0 24 lambda.z.time.first 0.717 <NA>
#> 13 1 0 24 lambda.z.time.last 21.6 <NA>
#> 14 1 0 24 lambda.z.n.points 4 <NA>
#> 15 1 0 24 clast.pred 0.284 <NA>
#> 16 1 0 24 half.life 28.1 <NA>
#> 17 1 0 24 span.ratio 0.741 <NA>
#> 18 1 0 24 aucinf.obs 19.2 <NA>
#> 19 1 0 24 aucinf.pred 18.6 <NA>Created on 2025-07-21 with reprex v2.1.1 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi
The NCA calculation does not seem to generate AUClast for some IDs in my dataset. Though the similar has a different output through winnolin. Attached here is the example for 1 ID similar to what I have and its output. Also the code I'm using. Please guide me into what am I missing or doing wrong here. Thanks
Beta Was this translation helpful? Give feedback.
All reactions