MULTISTATE: Stata module to perform multi-state survival analysis
Michael J. Crowther () and
Paul Lambert ()
Additional contact information
Michael J. Crowther: Red Door Analytics
Paul Lambert: University of Leicester
Statistical Software Components from Boston College Department of Economics
Abstract:
multistate provides a set of commands for multi-state survival analysis. -msset- is a data preparation tool which converts a dataset from wide (one observation per subject, multiple time and status variables) to long (one observation for each transition of which a subject is at risk). -msaj- calculates the non-parametric Aalen-Johansen estimates of transition probabilities. -msboxes- creates a descriptive plot of the multi-state process through the transition matrix and numbers at risk. -stms- fits joint transition-specific survival models, allowing each transition to have a different parametric model, yet maximised jointly to enable sharing of covariate effects across transitions. -predictms- calculates a variety of predictions from a multi-state survival model, including transition probabilities, length of stay (restricted mean time in each state), the probability of ever visiting each state and more. Predictions are made at user-specified covariate patterns. Differences and ratios of predictions across covariate patterns can also be calculated. Standardised (population-averaged) predictions can be obtained. Confidence intervals for all quantities are available. Simulation or the Aalen-Johansen estimator are used to calculate all quantities. User-defined predictions can also be calculated by providing a user-written Mata function, to provide complete flexibility. -predictms- can be used with a general transition matrix (cyclic or acyclic), and allows the use of transition-specific timescales.
Language: Stata
Requires: Stata version 15.1 and merlin from SSC (q.v.)
Keywords: survival analysis; multiple states; state transitions (search for similar items in EconPapers)
Date: 2016-07-21, Revised 2023-01-18
Note: This module should be installed from within Stata by typing "ssc install multistate". The module is made available under terms of the GPL v3 (https://www.gnu.org/licenses/gpl-3.0.txt). Windows users should not attempt to download these files with a web browser.
References: Add references at CitEc
Citations:
Downloads: (external link)
http://fmwww.bc.edu/repec/bocode/m/multistate.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/f/freq_total.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/graphms.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/g/graphms.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/l/lmultistate.mlib Mata object library (application/x-stata)
http://fmwww.bc.edu/repec/bocode/m/msaj.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msaj.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msboxes_examples.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msboxes.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msboxes.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msset.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/m/msset.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/p/predictms.ado program code (text/plain)
http://fmwww.bc.edu/repec/bocode/p/predictms.sthlp help file (text/plain)
http://fmwww.bc.edu/repec/bocode/m/multistate_example.dta sample data file (application/x-stata)
Related works:
This item may be available elsewhere in EconPapers: Search for items with the same title.
Export reference: BibTeX
RIS (EndNote, ProCite, RefMan)
HTML/Text
Persistent link: https://EconPapers.repec.org/RePEc:boc:bocode:s458207
Ordering information: This software item can be ordered from
http://repec.org/docs/ssc.php
Access Statistics for this software item
More software in Statistical Software Components from Boston College Department of Economics Boston College, 140 Commonwealth Avenue, Chestnut Hill MA 02467 USA. Contact information at EDIRC.
Bibliographic data for series maintained by Christopher F Baum ().