msmodel {changeLOS}R Documentation

multi-state model

Description

Makes a 'msmodel' - object to describe a 'multi-state model'

Usage

msmodel(state.names, tra, cens.name)

Arguments

state.names character vector of the state names
tra quadratic matrix of locigal values. TRUE/FALSE: transition is/is not possible
cens.name character string, name of the censoring variable

Value

An object of the class 'msmodel'. The object is a list of

msmodel$tra quadratic matrix of locigal values. TRUE/FALSE: transition is/is not possible
msmodel$states numeric vector, the set of names of the states. The internal representation will be numbers 1, 2, 3, ...; if censoring occurrs, the highest number will be the censoring code
msmodel$state.names character vector of the statenames
msmodel$transitions matrix with two columns, 1.column: state 'from', 2.column: state 'to',the number of rows is the number of possibles transitions

Author(s)

Matthias Wangler mw@imbi.uni-freiburg.de

Examples

my.model <- msmodel(c("0","1","2","3"),cens.name="cens")

[Package changeLOS version 2.0.9-2 Index]