print.msm: Print a fitted msm model object

Description Usage Arguments Details Value Author(s) See Also


Print a fitted msm model object


## S3 method for class 'msm'
print(x,covariates=NULL, digits=4, ...)
printnew.msm(x, covariates=NULL, digits=4, ...)



Output from msm, representing a fitted multi-state model object.


Covariates for which to print “baseline” transition intensities or misclassification probabilities. See qmatrix.msm for more details.


Minimum number of significant digits, passed to format. Defaults to 4.


Other arguments to be passed to format.


This is the new method of formatting msm objects for printing. The old method was based on printing lists of matrices. That produced a lot of wasted space for parameters which were zero, and it was difficult to match corresponding numbers between matrices. The new method presents all the transition intensities and covariate effects as a single compact table, and likewise for misclassification matrices.

Also in the old method, covariate effects were presented as log hazard ratios or log odds ratios. The log scale is more convenient mathematically, but unnatural to interpret. The new method presents hazard ratios for covariates on transition intensities and odds ratios for misclassification probabilities.

printnew.msm is an alias for print.msm.


The object returned by print.msm is a numeric matrix with one column for each estimate or confidence limit for intensities and their covariates, in the same arrangement as printed, but with the underlying numbers in full precision. The results formatted for printing are stored in the "formatted" attribute of the object, as a character matrix. These can alternatively be produced by msm.form.qoutput, which has no printing side-effect. msm.form.eoutput produces the same arrangement for misclassification probabilities instead of intensities.


C. H. Jackson

See Also

msm, printold.msm, msm.form.qoutput.

Search within the msm package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.