| print.modMStates_fit | R Documentation |
Display methods for the object returned by fit_msm.
## S3 method for class 'modMStates_fit'
print(x, digits = 4, ...)
## S3 method for class 'modMStates_fit'
summary(object, ...)
x, object |
An object of class |
digits |
Number of digits used when printing estimates. |
... |
Further arguments, currently ignored. |
print returns its argument invisibly and is called for the side
effect of printing the fitted transition intensities with their confidence
intervals and observed transition counts, the mean sojourn times, the
transition probability matrix at the chosen horizon, and the optimiser's
convergence status. State pairs with fewer than ten observed transitions are
flagged. summary returns an object of class
"summary.modMStates_fit", whose print method additionally shows the
full matrix of observed transition counts.
fit_msm
dat <- sim_mspdata("illness_death_3state", n = 100, t = 10)
fit <- fit_msm(dat, "illness_death_3state", t = 5)
print(fit)
summary(fit)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.