msmodel {changeLOS} | R Documentation |
Makes a 'msmodel' - object to describe a 'multi-state model'
msmodel(state.names, tra, cens.name)
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 |
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 |
Matthias Wangler mw@imbi.uni-freiburg.de
my.model <- msmodel(c("0","1","2","3"),cens.name="cens")