print.modMStates_fit: Print and summary methods for a fitted multi-state model

View source: R/methods.R

print.modMStates_fitR Documentation

Print and summary methods for a fitted multi-state model

Description

Display methods for the object returned by fit_msm.

Usage

## S3 method for class 'modMStates_fit'
print(x, digits = 4, ...)

## S3 method for class 'modMStates_fit'
summary(object, ...)

Arguments

x, object

An object of class "modMStates_fit" returned by fit_msm.

digits

Number of digits used when printing estimates.

...

Further arguments, currently ignored.

Value

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.

See Also

fit_msm

Examples

dat <- sim_mspdata("illness_death_3state", n = 100, t = 10)
fit <- fit_msm(dat, "illness_death_3state", t = 5)
print(fit)
summary(fit)

modMStates documentation built on Sept. 3, 2026, 5:10 p.m.