prepare.progdismodel {changeLOS}R Documentation

Prepare the data and the model for progdismodel

Description

Prepare the model and the data as the ones generated by read.los.data to be passed to progdismodel().

Usage

prepare.progdismodel(data)

Arguments

data data.frame of the form data.frame(id, j.01, j.02, j.03, j.12, j.13, cens):
id:
id (patient id, admision id)
j.01:
observed time for jump from 0 to 1
j.02:
observed time for jump from 0 to 2
j.03:
observed time for jump from 0 to 3
j.12:
observed time for jump from 1 to 2
j.13:
observed time for jump from 1 to 3
cens:
censoring time (either in initial or intermediate state)

Value

A list of:

observ a data.frame of the form data.frame(id, from, to, time, oid):
id:
id (patient id, admision id)
from:
the state from where a transition occurs
to:
the state to which a transition occurs
time:
time of the transition
oid:
the observation id
model an object of class 'msmodel', which describes the progressive disability model with two transient and four absorbing states.

Author(s)

Matthias Wangler mw@imbi.uni-freiburg.de

See Also

prepare.los.data, read.los.data

Examples

data(los.data)
p <- prepare.progdismodel(data=los.data)

[Package changeLOS version 2.0.9-2 Index]