Learn R Programming

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

6,857

Version

0.3.3

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Last Published

July 11th, 2024

Functions in mstate (0.3.3)

EBMT data

Data from the European Society for Blood and Marrow Transplantation (EBMT)
EBMT platelet recovery data

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

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

Log-rank based test for the validity of the Markov assumption
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)
Cuminc

Calculate nonparametric cumulative incidence functions and associated standard errors
Liver cirrhosis data

Abnormal prothrombin levels in liver cirrhosis
LMAJ

Landmark Aalen-Johansen method
bmt

BMT data from Klein and Moeschberger
modify_transMat

Upgrade the transMat object for the multi-state/relsurv setting.
haz_function

Helper function that calculates excess and population hazards for a given transition
events

Count number of observed transitions
etm2msdata

Converts between etm and msdata format
expand.covs

Expand covariates in competing risks dataset in stacked format
msboot

Bootstrap function in multi-state models
cutLMms

Cut a multi-state data set at a landmark time point
expand.covs.msdata

Expand covariates in multi-state dataset in long format
crprep.default

Function to create weighted data set for competing risks analyses
msboot.relsurv

Bootstrap function for upgraded multi-state models using relsurv
mssample

Sample paths through a multi-state model
msdata2etm

msdata to etm format
msboot.relsurv.boot

Default theta function used for msboot.relsurv
msfit.relsurv

Extend a multi-state model using relative survival
paths

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

Plot method for Cuminc objects
msfit

Compute subject-specific transition hazards with (co-)variances
mstate-package

Data preparation, estimation and prediction in multi-state models
msprep

Function to prepare dataset for multi-state modeling in long format from dataset in wide format
summary.Cuminc

Summary method for a summary.Cuminc object
redrank

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

Convert transition matrix from mstate to etm format
print.summary.msfit

Print method for summary.msfit object
vis.mirror.pt

Mirror plot comparing two probtrans objects
print.msdata

Print method for a msdata object
transMat

Define transition matrix for multi-state model
vis.multiple.pt

Visualise multiple probtrans objects
xsect

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

Print method for a MarkovTest object
plot.probtrans

Plot method for a probtrans object
print.summary.probtrans

Print method for a summary.probtrans object
varHaz.fixed

Upgrade the varHaz object
plot.MarkovTest

Plot method for a MarkovTest object
plot.msfit

Plot method for an msfit object
transhelp

Help functions for transition matrix
probtrans

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

Summary method for a probtrans object
summary.msfit

Summary method for an msfit object