Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

For special columns (like volume), it should be an error to try to calculate without the column specified #194

Open
billdenney opened this issue Nov 17, 2022 · 0 comments

Comments

@billdenney
Copy link
Owner

This should be an error because ae is requested but volume is not given. (Related to #166)

library(PKNCA)
#> 
#> Attaching package: 'PKNCA'
#> The following object is masked from 'package:stats':
#> 
#>     filter
conc_obj <- PKNCAconc(as.data.frame(datasets::Theoph), conc~Time|Subject)

d_dose <- unique(datasets::Theoph[datasets::Theoph$Time == 0,
                                  c("Dose", "Time", "Subject")])
dose_obj <- PKNCAdose(d_dose, Dose~Time|Subject)
d_intervals <- data.frame(start = 0, end = 24, ae = TRUE)
data_obj <- PKNCAdata(conc_obj, dose_obj, intervals = d_intervals)
summary(pk.nca(data_obj))
#>  start end  N ae
#>      0  24 12 NC
#> 
#> Caption: ae: geometric mean and geometric coefficient of variation

Created on 2022-11-16 with reprex v2.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant