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

9,154

Version

0.3.2

License

GPL (>= 2)

Maintainer

Hein Putter

Last Published

November 8th, 2021

Functions in mstate (0.3.2)

Cuminc

Calculate nonparametric cumulative incidence functions and associated standard errors
aidssi

Data from the Amsterdam Cohort Studies on HIV infection and AIDS
Liver cirrhosis data

Abnormal prothrombin levels in liver cirrhosis
LMAJ

Landmark Aalen-Johansen method
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
EBMT data

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

Cut a multi-state data set at a landmark time point
EBMT year of relapse data

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

Expected length of stay
EBMT cause of death data

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

Upgrade the transMat object for the multi-state/relsurv setting.
expand.covs.msdata

Expand covariates in multi-state dataset in long format
paths

Find all possible trajectories through a given multi-state model
plot.Cuminc

Plot method for Cuminc objects
etm2msdata

Converts between etm and msdata format
msfit.relsurv

Extend a multi-state model using relative survival
msboot

Bootstrap function in multi-state models
msprep

Function to prepare dataset for multi-state modeling in long format from dataset in wide format
expand.covs

Expand covariates in competing risks dataset in stacked format
events

Count number of observed transitions
redrank

Reduced rank proportional hazards model for competing risks and multi-state models
msdata2etm

msdata to etm format
bmt

BMT data from Klein and Moeschberger
plot.probtrans

Plot method for a probtrans object
print.msdata

Print method for a msdata object
crprep.default

Function to create weighted data set for competing risks analyses
mssample

Sample paths through a multi-state model
mstate-package

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

Plot method for a MarkovTest object
print.summary.msfit

Print method for summary.msfit object
varHaz.fixed

Upgrade the varHaz object
transhelp

Help functions for transition matrix
summary.Cuminc

Summary method for a summary.Cuminc object
plot.msfit

Plot method for an msfit object
print.summary.probtrans

Print method for a summary.probtrans object
msfit

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

Summary method for a probtrans object
summary.msfit

Summary method for an msfit object
probtrans

Compute subject-specific or overall transition probabilities with standard errors
haz_function

Helper function that calculates excess and population hazards for a given transition
msboot.relsurv

Bootstrap function for upgraded multi-state models using relsurv
xsect

Make a cross-section of multi-state data at a given time point
vis.mirror.pt

Mirror plot comparing two probtrans objects
vis.multiple.pt

Visualise multiple probtrans objects
print.MarkovTest

Print method for a MarkovTest object
msboot.relsurv.boot

Default theta function used for msboot.relsurv
trans2tra

Convert transition matrix from mstate to etm format
transMat

Define transition matrix for multi-state model