Building augmented data for multi-state models: the msmtools package

CRAN_Status_Badge Linux/Unix: Build Status Windows: Build status

msmtools introduces a fast and general method for restructuring classical longitudinal datasets into augmented ones. The reason for this is to facilitate the modeling of longitudinal data under a multi-state framework using the msm package.


# Install the released version from CRAN:
install.packages( "msmtools" )

# Install the development version from GitHub:
devtools::install_github( "contefranz/msmtools" )


msmtools comes with 4 functions:

For more information about msmtools, please check out the vignette with vignette( "msmtools" ).

Bugs and issues can be reported at