Create an object with class "pkmod"
init_pkmod(
pars_pk = NULL,
init = NULL,
pkfn = NULL,
pars_pd = NULL,
pdfn = NULL,
pdinv = NULL,
pcmpt = NULL,
ecmpt = NULL,
sigma_add = NULL,
sigma_mult = NULL,
log_response = NULL,
Omega = NULL
)
A list with class pkmod for which print, plot, predict, and simulate methods exist.
Vector or matrix of named PK parameters. If not specified, the pkmod function will be inferred from the parameter names. Print `list_parnms()` for acceptable parameter names.
Vector of initial concentrations. Will default to values of zero in all compartments if not specified.
PK model function. Functions provided in `tci` include `pkmod1cpt`, `pkmod2cpt`, `pkmod3cpt`, and `pkmod3cptm`. User-defined functions should be specified here.
PD model parameters if a PD model is specified
PD model function
Inverse PD model function for use in TCI algorithms
Index of plasma compartment. Defaults to first compartment if not specified.
Index of effect-site compartment if a PD model is specified. Will default to last compartment if unspecified.
Standard deviation of additive residual error
Standard deviation of multiplicative residual error
Logical value indicating if the response should be logged prior to adding error.
Optional matrix of random effect parameters. Column names should correspond to names of pars_pk, pars_pd, and sigma_add or sigma_mult.
# create a pkmod object for a one compartment model with plasma targeting
init_pkmod()
Run the code above in your browser using DataLab