View source: R/msfit_subjects.R
trans_specific_risks | R Documentation |
Return a 2 dimensional array, with subjects in the first dimension and transition (numbers) in the second. Can expand later to include time-dependent covariates by introducing extra dimension. Entries of the matrix are exp(lp)_i^m, with i denoting the subject and m the transition.
trans_specific_risks(object, newdata, trans, n_subjects, subject_ids)
object |
A |
newdata |
A
Note that newdata must contain a column containing the variable which was
used to determine the stratum of a transition in |
trans |
Transition matrix describing the states and transitions in the
multi-state model. See |
Daniel Gomon
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.