View source: R/inverse_mc_sampler.R
Simulation of a multi-state model General function to generate a multi-state model requires a compiled model using mrgsolve for the Kolmogorov ODE, which is used to sample the state occupancy in the model.
1 | mcttesim_weibull(modeldat, id, covs, nstate, absor, qfun, G, A)
|
modeldat |
mrgsolve model with defined the multi-state model. |
id |
id parameter |
covs |
covariates of the model |
nstate |
number of states |
absor |
absorving states, if more than one pass as a vector |
qfun |
function to pass q. |
G |
the G matrix of nstate x nstate. |
A |
the alpha matrix of nstate x nstate. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.