Skip to contents

Wrapper function to add covariates to a pharmpy model

Usage

add_covariates_to_model(model, covariates, data = NULL)

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.