msmbayes

msmbayes is an R package for Bayesian multi-state modelling of intermittently-observed data.

It is similar to the msm package. It supports the following continuous-time multi-state models:

The same observation schemes are supported as in msm: intermittent observations, exact transition times, "exact death times" and censored (coarsened) states. Covariates may be time-homogeneous or piecewise-constant.

Any transition structures are permitted for any models (any number of states, with or without cycles, with or without absorbing states).

Models can be fitted with Bayesian, approximate Bayesian or maximum likelihood estimation, via any of the algorithms available in Stan, whereas msm uses only maximum likelihood.

Advantages of msmbayes compared to msm

Limitations of msmbayes compared to msm

Getting started

Examples of using msmbayes are given in: vignette("examples").

Note: Some knowledge of Bayesian analysis is needed to develop and interpret models with this package!

Installation

## install,packages("remotes") # if need be
remotes::install_github("chjackson/msmbayes")

If you use it, please give feedback on github issues, or by email.

Papers about msmbayes

Slides from presentations about msmbayes