Create a multistate model
create_msm.RdCreate a multistate model
Arguments
- tm
A
TransitionMatrix. Seetransmatfor how to create common transition matrices.- hazard_covs
Covariates that affect the hazard. A character vector. The name
"dose_amt"is special if simulating data using the model.- pk_covs
Covariates that affect the PK parameters. A list with elements
kaCL, andV2. IfNULL, a PK model will not be created.- categ_covs
Names of covariates that are binary. This only has an effect when simulating data. When fitting a model, all covariates are treated as continuous, so you should use a binary encoding for categories if there is more than two.
- ...
Arguments passed to
MultistateModelinit
Value
A MultistateModel object.