Learn R Programming

⚠️There's a newer version (1.8.1) of this package.Take me there.

msm (version 1.6.6)

Multi-State Markov and Hidden Markov Models in Continuous Time

Description

Functions for fitting continuous-time Markov and hidden Markov multi-state models to longitudinal data. Designed for processes observed at arbitrary times in continuous time (panel data) but some other observation schemes are supported. Both Markov transition rates and the hidden Markov output process can be modelled in terms of covariates, which may be constant or piecewise-constant in time.

Copy Link

Version

Install

install.packages('msm')

Monthly Downloads

15,206

Version

1.6.6

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Christopher Jackson

Last Published

February 2nd, 2018

Functions in msm (1.6.6)

boot.msm

Bootstrap resampling for multi-state models
medists

Measurement error distributions
qcmodel.object

Developer documentation: model for covariates on transition intensities
ematrix.msm

Misclassification probability matrix
recreate.olddata

Convert data stored in msm object to old format
phasemeans.msm

Parameters of phase-type models in mixture form
pnext.msm

Probability of each state being next
plot.msm

Plots of multi-state models
ppass.msm

Passage probabilities
pmatrix.piecewise.msm

Transition probability matrix for processes with piecewise-constant intensities
scoreresid.msm

Score residuals
msm.form.qoutput

Extract msm model parameter estimates in compact format
model.frame.msm

Extract original data from msm objects.
msm2Surv

Convert data for `msm' to data for `survival', `mstate' or `flexsurv' analysis
prevalence.msm

Tables of observed and expected prevalences
psor

Psoriatic arthritis data
msm

Multi-state Markov and hidden Markov models in continuous time
odds.msm

Calculate tables of odds ratios for covariates on misclassification probabilities
paramdata.object

Developer documentation: internal msm parameters object
plot.prevalence.msm

Plot of observed and expected prevalences
pearson.msm

Pearson-type goodness-of-fit test
emodel.object

Developer documentation: misclassification model structure object
simmulti.msm

Simulate multiple trajectories from a multi-state Markov model with arbitrary observation times
fev

FEV1 measurements from lung transplant recipients
plot.survfit.msm

Plot empirical and fitted survival curves
qgeneric

Generic function to find quantiles of a distribution
pexp

Exponential distribution with piecewise-constant rate
print.msm

Print a fitted msm model object
printold.msm

Print a fitted msm model object
statetable.msm

Table of transitions
qmatrix.msm

Transition intensity matrix
msm.summary

Summarise a fitted multi-state model
logLik.msm

Extract model log-likelihood
sim.msm

Simulate one individual trajectory from a continuous-time Markov model
sojourn.msm

Mean sojourn times from a multi-state model
totlos.msm

Total length of stay, or expected number of visits
simfitted.msm

Simulate from a Markov model fitted using msm
lrtest.msm

Likelihood ratio test
transient.msm

Transient and absorbing states
plotprog.msm

Kaplan Meier estimates of incidence
qmodel.object

Developer documentation: transition model structure object
pmatrix.msm

Transition probability matrix
qratio.msm

Estimated ratio of transition intensities
tnorm

Truncated Normal distribution
surface.msm

Explore the likelihood surface
updatepars.msm

updatepars.msm
viterbi.msm

Calculate the probabilities of underlying states and the most likely path through them
deltamethod

The delta method
2phase

Coxian phase-type distribution with two phases
crudeinits.msm

Calculate crude initial values for transition intensities
bos

Bronchiolitis obliterans syndrome after lung transplants
cmodel.object

Developer documentation: censoring model object
cav

Heart transplant monitoring data
MatrixExp

Matrix exponential
aneur

Aortic aneurysm progression data
coef.msm

Extract model coefficients
efpt.msm

Expected first passage time
hazard.msm

Calculate tables of hazard ratios for covariates on transition intensities
draic.msm

Criteria for comparing two multi-state models with nested state spaces
hmodel.object

Developer documentation: hidden Markov model structure object
hmmMV

Multivariate hidden Markov models
ecmodel.object

Developer documentation: model for covariates on misclassification probabilities
msm.object

Fitted msm model objects
hmm-dists

Hidden Markov model constructors