Learn R Programming

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

msm (version 1.6.9)

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

19,259

Version

1.6.9

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Christopher Jackson

Last Published

September 27th, 2021

Functions in msm (1.6.9)

cav

Heart transplant monitoring data
deltamethod

The delta method
bos

Bronchiolitis obliterans syndrome after lung transplants
aneur

Aortic aneurysm progression data
MatrixExp

Matrix exponential
crudeinits.msm

Calculate crude initial values for transition intensities
boot.msm

Bootstrap resampling for multi-state models
cmodel.object

Developer documentation: censoring model object
2phase

Coxian phase-type distribution with two phases
coef.msm

Extract model coefficients
draic.msm

Criteria for comparing two multi-state models with nested state spaces
hazard.msm

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

Expected first passage time
hmmMV

Multivariate hidden Markov models
hmodel.object

Developer documentation: hidden Markov model structure object
ematrix.msm

Misclassification probability matrix
hmm-dists

Hidden Markov model constructors
ecmodel.object

Developer documentation: model for covariates on misclassification probabilities
fev

FEV1 measurements from lung transplant recipients
emodel.object

Developer documentation: misclassification model structure object
medists

Measurement error distributions
msm.object

Fitted msm model objects
msm2Surv

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

Developer documentation: internal msm parameters object
lrtest.msm

Likelihood ratio test
odds.msm

Calculate tables of odds ratios for covariates on misclassification probabilities
logLik.msm

Extract model log-likelihood
msm.form.qoutput

Extract msm model parameter estimates in compact format
msm

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

Extract original data from msm objects.
plot.msm

Plots of multi-state models
phasemeans.msm

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

Pearson-type goodness-of-fit test
pexp

Exponential distribution with piecewise-constant rate
plotprog.msm

Kaplan Meier estimates of incidence
psor

Psoriatic arthritis data
pmatrix.msm

Transition probability matrix
plot.prevalence.msm

Plot of observed and expected prevalences
plot.survfit.msm

Plot empirical and fitted survival curves
surface.msm

Explore the likelihood surface
printold.msm

Print a fitted msm model object
print.msm

Print a fitted msm model object
qmodel.object

Developer documentation: transition model structure object
pmatrix.piecewise.msm

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

Estimated ratio of transition intensities
ppass.msm

Passage probabilities
pnext.msm

Probability of each state being next
updatepars.msm

updatepars.msm
tnorm

Truncated Normal distribution
qgeneric

Generic function to find quantiles of a distribution
prevalence.msm

Tables of observed and expected prevalences
qmatrix.msm

Transition intensity matrix
viterbi.msm

Calculate the probabilities of underlying states and the most likely path through them
sojourn.msm

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

Simulate multiple trajectories from a multi-state Markov model with arbitrary observation times
recreate.olddata

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

Score residuals
statetable.msm

Table of transitions
msm.summary

Summarise a fitted multi-state model
qcmodel.object

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

Simulate from a Markov model fitted using msm
sim.msm

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

Transient and absorbing states
totlos.msm

Total length of stay, or expected number of visits