format_pars {tci} | R Documentation |
Format parameters for use in Rcpp functions Order parameters for 1-4 compartment models to be used in Rcpp functions in predict_pkmod method.
Description
Format parameters for use in Rcpp functions
Order parameters for 1-4 compartment models to be used in Rcpp functions in predict_pkmod method.
Usage
format_pars(pars, ncmpt = 3)
Arguments
pars |
Vector of named parameters. Names can be capitalized or lowercase and can include variations of "V1" as "V" or clearance terms rather than elimination rate constants. |
ncmpt |
Number of compartments in the model. This should be a value between 1 and 4. If ncmpt = 4, it assumes that the fourth compartment is an effect-site without a corresponding volume parameter. |
Value
Numeric vector of transformed parameter values.
Examples
format_pars(c(V1 = 8.9, CL = 1.4, q2 = 0.9, v2 = 18), ncmpt = 2)
format_pars(c(V1 = 8.9, CL = 1.4, q2 = 0.9, v2 = 18, cl2 = 3), ncmpt = 2)
[Package tci version 0.2.0 Index]