Extract parameters from a multi-state NMA for use with the data table returned by
create_transmod_data
, which are used to simulate health state
transitions with a continuous time state transition model (CTSTM).
create_transmod_params(n = 100, data, params_mstate_nma = iviNSCLC::params_mstate_nma, check_covs = FALSE, covs = NULL)
n | The number of random observations of the parameters to draw. |
---|---|
data | A data table of class "expanded_hesim_data" returned from
|
params_mstate_nma | A list of |
check_covs | Logical indicating whether to check that all covariates in
|
covs | If |
A params_surv
objects from the
hesim package.
The "dist" attribute from data
is used to select a survival
distribution from the mstate_nma
element contained in params
. The
covariates for the selected survival distribution in mstate_nma
that are also contained in data
are extracted.