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