CompetingRiskFrailtySurv {CompetingRiskFrailty} | R Documentation |
Creates an object of class 'CompetingRiskFrailtySurv' for using as a response in the model formula in the call to the 'CompetingRiskFrailtySurvitCreate' function.
CompetingRiskFrailtySurv(ID=ID,surv.time=surv.time, status=status)
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. |
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.
An object of class 'CompetingRiskFrailtySurv'.
Pavel Khomski <pkhomski@wiwi.uni-bielefeld.de>
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.
CompetingRiskFrailtySurvfitCreate
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)