Learn R Programming

⚠️There's a newer version (0.3.3) of this package.Take me there.

mstate

Installation

You can install the released version of mstate from CRAN with:

install.packages("mstate")

Alternatively, you can install the development version from GitHub:

devtools::install_github("hputter/mstate")

Copy Link

Version

Install

install.packages('mstate')

Monthly Downloads

8,681

Version

0.3.1

License

GPL (>= 2)

Maintainer

Hein Putter

Last Published

December 17th, 2020

Functions in mstate (0.3.1)

EBMT platelet recovery data

Data from the European Society for Blood and Marrow Transplantation (EBMT)
MarkovTest

Log-rank based test for the validity of the Markov assumption
Cuminc

Calculate nonparametric cumulative incidence functions and associated standard errors
EBMT data

Data from the European Society for Blood and Marrow Transplantation (EBMT)
ELOS

Expected length of stay
EBMT year of relapse data

Data from the European Society for Blood and Marrow Transplantation (EBMT)
EBMT cause of death data

Data from the European Society for Blood and Marrow Transplantation (EBMT)
aidssi

Data from the Amsterdam Cohort Studies on HIV infection and AIDS
LMAJ

Landmark Aalen-Johansen method
Liver cirrhosis data

Abnormal prothrombin levels in liver cirrhosis
expand.covs.msdata

Expand covariates in multi-state dataset in long format
bmt

BMT data from Klein and Moeschberger
expand.covs

Expand covariates in competing risks dataset in stacked format
events

Count number of observed transitions
plot.MarkovTest

Plot method for a MarkovTest object
plot.Cuminc

Plot method for Cuminc objects
mstate-package

Data preparation, estimation and prediction in multi-state models
print.MarkovTest

Print method for a MarkovTest object
paths

Find all possible trajectories through a given multi-state model
msboot

Bootstrap function in multi-state models
cutLMms

Cut a multi-state data set at a landmark time point
etm2msdata

Converts between etm and msdata format
print.msdata

Print method for a msdata object
plot.msfit

Plot method for an msfit object
msdata2etm

msdata to etm format
crprep.default

Function to create weighted data set for competing risks analyses
summary.probtrans

Summary method for a probtrans object
transMat

Define transition matrix for multi-state model
transhelp

Help functions for transition matrix
msfit

Compute subject-specific transition hazards with (co-)variances
probtrans

Compute subject-specific or overall transition probabilities with standard errors
summary.msfit

Summary method for an msfit object
summary.Cuminc

Summary method for a summary.Cuminc object
redrank

Reduced rank proportional hazards model for competing risks and multi-state models
vis.mirror.pt

Mirror plot comparing two probtrans objects
vis.multiple.pt

Visualise multiple probtrans objects
plot.probtrans

Plot method for a probtrans object
trans2tra

Convert transition matrix from mstate to etm format
mssample

Sample paths through a multi-state model
print.summary.probtrans

Print method for a summary.probtrans object
print.summary.msfit

Print method for summary.msfit object
msprep

Function to prepare dataset for multi-state modeling in long format from dataset in wide format
xsect

Make a cross-section of multi-state data at a given time point