format_pars | 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.
format_pars(pars, ncmpt = 3)
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. |
Numeric vector of transformed parameter values.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.