Data Preparation, Estimation and Prediction in Multi-State Models
Overview
Contains functions for data preparation, descriptives, hazard estimation and prediction with Aalen-Johansen or simulation in competing risks and multi-state models, see Putter, Fiocco, Geskus (2007) doi:10.1002/sim.2712.
- Fixed issue with msprep() that occurred with very long vectors/mismatch between numeric id columns and integer id levels - thanks to @fumi-github for fixing #26
- Fixed issue #16 inside msfit (dimension of hlp) - thanks to @MetzgerSK
- Fixed issue #27 with msfit() and vartype=="aalen", similar to an issue in previous version - thanks to @MetzgerSK
- Other fixes: #31 (dimensions preserved when transitions made by only one individual), #30 (two-state model with vartype=="aalen" now works), #13 (proper output returned for mssample() when output='data'),a minor issue with vis.mirror.pt(), Cuminc() update (coerces data to data.frame, and removes defunct failcode argument)
From NEWS.md in the release
Install
Health
NOTERd contentsr-devel-linux-x86_64-debian-clang, r-devel-linux-x86_64-debian-gcc
Rd files without \usage: ‘transhelp.Rd’ \arguments should not be documented without \usage.
- NOTE11 OK, 2 NOTENow
- NOTE12 OK, 1 NOTE2026-07-11
- OK14 OK2026-03-10
Documentation
- Help pages
- 49includes a package overview page
- Examples that run
- 79%27 run in a plain check · 7 never run
- Exported functions with examples
- 79%
- Documented parameters
- 98%
- Return-value docs
- 90%
- Help pages citing references
- 43%
Downloads
Repository
- PRs merged (all time)
- 100%
- Median days to close, 50 most recently updated closed issues
- 98
- Median days to close, 50 most recently updated closed PRs
- 1
Stars over time
Forks over time
Issues over time
PRs over time
3 development-tooling and community-health practices detected across 2 families in the upstream repository
Checks run against github.com/hputter/mstate on 2026-10-11.
Dependencies
Installing mstate adds 4 packages (2 with compiled code, 7.7 MB of source tarballs). Heaviest: data.table 5.7 MB, viridisLite 1.2 MB, rlang 766 KB.
Show all 27 packagesHide all 27 packages
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- RR 3.4.0 released · 2017-04-21
- RR 3.3.0 released · 2016-05-03
- RR 3.2.0 released · 2015-04-16
- RR 3.1.0 released · 2014-04-10
- RR 3.0.0 released · 2013-04-03
- RR 2.15.0 released · 2012-03-30
- RR 2.14.0 released · 2011-10-31
Show 26 earlier eventsHide 26 earlier events
- RR 2.13.0 released · 2011-04-13
- 2.12.2Latest
- RR 2.12.0 released · 2010-10-15
- 2.12.02010-10-12 · diff ↗
- 2.11.12010-05-12 · diff ↗
- RR 2.11.0 released · 2010-04-22
- 2.10.12009-11-07 · diff ↗
- RR 2.10.0 released · 2009-10-26
- 2.10.02009-09-15 · diff ↗
- 2.9.22009-07-10 · diff ↗ ·
added 12 exports
msprep, events, paths, expand.covs, msfit, mssample, msboot, probtrans, Cuminc, redrank, trans.comprisk, trans.illdeath - 0.3.32024-07-11 · diff ↗
- 0.3.22021-11-08 · diff ↗ ·
added 6 exports
haz_function, modify_transMat, msboot.relsurv, msboot.relsurv.boot, msfit.relsurv, varHaz.fixed - 0.3.12020-12-17 · diff ↗ ·
added 13 exports
MarkovTest, absorbing, etm2msdata, is.circular, msdata2etm, optimal_weights_matrix, optimal_weights_multiple, to.trans2, tra2trans, trans2Q, trans2tra, vis.mirror.pt, vis.multiple.pt - 0.2.122019-12-11 · diff ↗
- 0.2.112018-04-09 · diff ↗
- 0.2.102016-12-04 · diff ↗
- 0.2.9
- 0.2.82015-12-06 · diff ↗
- 0.2.7
- 0.2.6
- 0.2.52010-10-12 · diff ↗
- 0.2.42010-06-02 · diff ↗
- 0.2.3
- 0.2.22009-09-24 · diff ↗
- 0.2.12009-07-21
- RR 2.9.0 released · 2009-04-17
Package metadata
- First published
- 2009-07-10
- Total releases
- 21 / 17 yrs
- License
- GPL (>= 2) OSI
- Bundled data
- 166 KB / 8 files
- Download size
- 900 KB
Cite
Cite this package
Run in R for the authors' entry:
citation("mstate")The package provides a citation file, so citation() returns the authors' own entry.
It points to 10.18637/jss.v038.i07.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-19, which the citation names so these numbers can be found later. More on citing and the projects behind them.