Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

coef.msm

Extract model coefficients


Description

Extract the estimated log transition intensities and the corresponding linear effects of each covariate.

Usage

## S3 method for class 'msm'
coef(object, ...)

Arguments

object

A fitted multi-state model object, as returned by msm.

...

(unused) further arguments passed to or from other methods.

Value

If there is no misclassification, coef.msm returns a list of matrices. The first component, labelled logbaseline, is a matrix containing the estimated transition intensities on the log scale with any covariates fixed at their means in the data. Each remaining component is a matrix giving the linear effects of the labelled covariate on the matrix of log intensities.

For misclassification models, coef.msm returns a list of lists. The first component, Qmatrices, is a list of matrices as described in the previous paragraph. The additional component Ematrices is a list of similar format containing the logit-misclassification probabilities and any estimated covariate effects.

Author(s)

See Also


msm

Multi-State Markov and Hidden Markov Models in Continuous Time

v1.6.8
GPL (>= 2)
Authors
Christopher Jackson <chris.jackson@mrc-bsu.cam.ac.uk>
Initial release
2019-12-16

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.