New to PKNCA #296
-
I have a scenario, On Days 1 through 7 of Period 1, participants drug A once daily (QD). PK samples will be collected predose on Day 1 and Day 7 and up to 24 hours post Day 7 dose. In period 2 participants were dose with another drug B for 15 days. PK samples were collected predose on day 15 and up to 24 hours post dose.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
When I ran your code, I didn't get the same error. Can you please try reinstalling PKNCA to ensure that you're using the current version? Other than that, your code swapped This code works for me: library(PKNCA)
#>
#> Attaching package: 'PKNCA'
#> The following object is masked from 'package:stats':
#>
#> filter
TestData <- read.csv("https://github.com/user-attachments/files/15523686/TestData.csv")
o_conc <- PKNCAconc(data=TestData, formula=CONC~HOUR|PERIOD+SUBJID)
d_intervals <- data.frame(start=0, end=24, auclast=TRUE)
o_data <- PKNCAdata(o_conc, intervals=d_intervals)
o_results <- pk.nca(o_data)
#> No dose information provided, calculations requiring dose will return NA.
summary(o_results)
#> start end PERIOD N auclast
#> 0 24 1 37 308 [24.0]
#>
#> Caption: auclast: geometric mean and geometric coefficient of variation; N: number of subjects Created on 2024-06-06 with reprex v2.1.0 |
Beta Was this translation helpful? Give feedback.
When I ran your code, I didn't get the same error. Can you please try reinstalling PKNCA to ensure that you're using the current version?
Other than that, your code swapped
PERIOD
andSUBJID
in the definition ofo_conc
so thatPERIOD
was assumed to be the subject identifier. And, you usedintervals_manual
instead ofd_intervals
.This code works for me: