Related Experiment Video
Updated: Jul 16, 2026

Competing-Risk Nomogram for Predicting Cancer-Specific Survival in Multiple Primary Colorectal Cancer Patients after Surgery
Published on: September 27, 2024
tdc.msm: an R library for the analysis of multi-state survival data
Luís Meira-Machado1, Carmen Cadarso-Suárez, Jacobo de Uña-Alvarez
1Department of Mathematics for Science and Technology, University of Minho, 4810 Azurém, Guimarães, Portugal. lmachado@mct.uminho.pt
Abstract:
The aim of this paper is to present an R library, called tdc.msm, developed to analyze multi-state survival data. In this library, the time-dependent regression model and multi-state models are included as two possible approaches for such data. For the multi-state modelling five different models are considered, allowing the user to choose between Markov and semi-Markov property, as well as to use homogeneous or non-homogeneous models. Specifically, the following multi-state models in continuous time were implemented: Cox Markov model; Cox semi-Markov model; homogeneous Markov model; non-homogeneous piecewise model and non-parametric Markov model. This software can be used to fit multi-state models with one initial state (e.g., illness diagnosis), a finite number of intermediate states, representing, for example, a change of treatment, and one absorbing state corresponding to a terminal event of interest. Graphical output includes survival estimates, transition probabilities estimates and smooth log hazard for continuous covariates.
Related Concept Videos
Survival Tree
Building a Survival Tree
Constructing a survival tree begins...
Introduction To Survival Analysis
The primary goal of survival analysis is to estimate survival time—the time until a...
Assumptions of Survival Analysis
Comparing the Survival Analysis of Two or More Groups
Parametric Survival Analysis: Weibull and Exponential Methods
Weibull Distribution
The Weibull distribution is a flexible model used in parametric survival analysis. It can handle both increasing and decreasing hazard rates, depending on its shape parameter...
Survival Curves
The Kaplan-Meier estimator is the most common method for constructing survival curves. This...

