trans_specific_risks {icmstate} | R Documentation |
Calculate subject specific risks for subjects in newdata
Description
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.
Usage
trans_specific_risks(object, newdata, trans)
Arguments
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 |
A transition matrix as created by |