Package: msmtools 2.2.1

msmtools: Building Augmented Data to Run Multi-State Models with 'msm' Package

A fast and general method for restructuring classical longitudinal observational data into augmented transition data suitable for multi-state modeling with the 'msm' package. Works with any longitudinal data where subjects accumulate repeated observations with start and end times and an optional terminal outcome. Methods are described in Grossetti, Ieva and Paganoni (2018) <doi:10.1007/s10729-017-9400-z>.

Authors:Francesco Grossetti [aut, cre]

msmtools_2.2.1.tar.gz
msmtools_2.2.1.zip(r-4.7)msmtools_2.2.1.zip(r-4.6)msmtools_2.2.1.zip(r-4.5)
msmtools_2.2.1.tgz(r-4.6-any)msmtools_2.2.1.tgz(r-4.5-any)
msmtools_2.2.1.tar.gz(r-4.7-any)msmtools_2.2.1.tar.gz(r-4.6-any)
msmtools_2.2.1.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
msmtools/json (API)
NEWS

# Install 'msmtools' in R:
install.packages('msmtools', repos = c('https://contefranz.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/contefranz/msmtools/issues

Pkgdown/docs site:https://contefranz.github.io

Datasets:
  • hosp - Synthetic Hospital Admissions

On CRAN:

Conda:

markov-modelmsmmulti-state-modelssurvival-analysistime-to-event

5.79 score 9 stars 17 scripts 196 downloads 1 mentions 4 exports 30 dependencies

Last updated from:de9e1ebacd. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK236
source / vignettesOK200
linux-release-x86_64OK164
macos-release-arm64OK133
macos-oldrel-arm64OK235
windows-develOK123
windows-releaseOK112
windows-oldrelOK80
wasm-releaseOK120

Exports:augmentpolishprevplotsurvplot

Dependencies:clicpp11data.tableexpmfarvergenericsggplot2gluegtableisobandlabelinglatticelifecyclemagrittrMatrixmsmmvtnormpillarpkgconfigR6RColorBrewerrlangS7scalessurvivaltibbleutf8vctrsviridisLitewithr

Building augmented data for multi-state models

Rendered frommsmtools.Rmdusingknitr::rmarkdown_notangleon Jun 09 2026.

Last update: 2026-05-28
Started: 2016-04-16