visualise_data {icmstate} | R Documentation |
Visualise data for illness-death model, only applicable to Frydman(1995) setting.
Description
Visualise data for illness-death model, only applicable to Frydman(1995) setting.
Usage
visualise_data(data, msmFrydman)
Arguments
data |
A
|
msmFrydman |
A fitted model from |
Value
Returns a visualisation of illness-death data, with the transition
from healthy to illness interval-censored and the other two transitions
observed exactly or right-censored. If msmFrydman
is specified, the
support intervals from the fit are additionally plotted at the top of the
data visualisation.
References
Frydman, H. (1995). Nonparametric Estimation of a Markov 'Illness-Death' Process from Interval- Censored Observations, with Application to Diabetes Survival Data. Biometrika, 82(4), 773-789. doi:10.2307/2337344
See Also
See msm_frydman
for fitting a model.
Examples
data <- data.frame(delta = c(0, 0, 1, 1), Delta = c(0, 1, 0, 1),
L = c(NA, NA, 1, 1.5), R = c(NA, 3, 2, 3),
time = c(4, 5, 6, 7))
mod_frydman <- msm_frydman(data)
visualise_data(data, mod_frydman)