Wrapper function to add covariates to a pharmpy model
Source:R/add_covariates_to_model.R
add_covariates_to_model.Rd
Wrapper function to add covariates to a pharmpy model
Arguments
- model
pharmpy model object
- covariates
list of parameter-covariate effects, e.g.
list(CL = list(WT = "pow", CRCL = "lin"), V = list(WT = "pow")
Values in list need to match one of the effects allowed by pharmpy.- data
dataset (data.frame). If supplied, will check if the covariate is actually available, and throw a warning (and skip) if not.