CompetingRiskFrailtySurv {CompetingRiskFrailty}R Documentation

Creates a Competing Risk Model Object

Description

Creates an object of class 'CompetingRiskFrailtySurv' for using as a response in the model formula in the call to the 'CompetingRiskFrailtySurvitCreate' function.

Usage

CompetingRiskFrailtySurv(ID=ID,surv.time=surv.time, status=status)

Arguments

ID

identification of clusterd observations.

surv.time

time to follow up for right censored data.

status

a data frame or a matrix with columns indicating the resulting event (or comepting risk) and coded as (0,1)-indicator vectors, 1 for event of the specified type, and 0 if such an event has not been observed.

Details

The function handls only right censored data. All arguments must be numeric vectors. NA's can be supplied but will not be supported by the function 'CompetingRiskFrailtySurvfitCreate' in the further analysis.

Value

An object of class 'CompetingRiskFrailtySurv'.

Author(s)

Pavel Khomski <pkhomski@wiwi.uni-bielefeld.de>

References

Kauermann G. and Khomski P. (2006): Full time or part time reemployment: a competing risk model with frailties and smooth effects using a penalty based approach, to appear.

See Also

CompetingRiskFrailtySurvfitCreate

Examples

data(unemployed.comp.risk)
ID<-unemployed.comp.risk$id
surv.time<-unemployed.comp.risk$surv.time
status<-unemployed.comp.risk[,3:4]
my.Surv<-CompetingRiskFrailtySurv(ID=ID,surv.time=surv.time,status=status)

[Package CompetingRiskFrailty version 2.0 Index]