trans.illdeath {mstate}R Documentation

Define transition matrix for competing risks or illness-death model

Description

Define transition matrices for common multi-state models like the competing risks model and the illness-death model.

Usage

trans.comprisk(K, names)
trans.illdeath(names)

Arguments

K The number of competing risks
names A character vector containing the names of either the competing risks or the states in the multi-state model specified by the competing risks or illness-death model. The length of names should be either K or K+1 (for trans.comprisk), or 3 (for trans.illdeath)

Details

If names is missing, the names "eventfree", "cause1", etcetera are assigned in trans.comprisk, or "healthy", "illness", "death" in trans.illdeath.

Value

A transition matrix describing the states and transitions in the multi-state model.

Author(s)

Hein Putter <H.Putter@lumc.nl>

Examples

trans.comprisk(3)
trans.comprisk(3,c("c1","c2","c3"))
trans.comprisk(3,c("nothing","c1","c2","c3"))
trans.illdeath()
trans.illdeath(c("nothing","ill","death"))

[Package mstate version 0.2.2 Index]