Calculate risks with handlers for survival data
riskcalc(risk.function, Y, par, t, dat0, dat1)
Function taking three arguments, a data.frame, parameters, and time. It should return a vector the same number of rows as the data frame
The outcome variable
the vector of parameter values
Time for a survival outcome, may be missing
Data frame containing S and Z = 1
Data frame containing S and Z = 0