View source: R/survival_functions.R
fit.mstate | R Documentation |
fit.mstate
fits multi-state model.
fit.mstate(
time,
status,
trans,
data = data,
add = FALSE,
extrapolate = FALSE,
times
)
time |
numeric vector of time to estimate probabilities. |
status |
numeric vector of event status. |
trans |
matrix of transition history. |
data |
dataframe containing the time and status variables. |
add |
add superimposed curves to the KM plot. Default = FALSE. |
extrapolate |
extrapolate beyond model time horizon. Default = FALSE. |
times |
time horizon the extrapolation is done over. |
Multi-state model fit.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.