Calculate Residuals for a ‘reReg’ Fit
Calculates residuals for a joint frailty scale-change model fitted by 'reReg'. Under the recurrent event model, at each observation time, t, the residual is calculated as
\mbox{observed number of recurrent events at } t- \mbox{expected number of recurrent events at} t.
The expected number of recurrent events at t is calculated by the cumulative rate function at t. Under the failure time model, the residual is calculated as
Δ - H(t),
where Δ is the terminal event indicator and H(t) is the cumulative hazard function at t.
## S3 method for class 'reReg' residuals(object, model = c("recurrent", "failure"), ...)
object |
an object of class |
model |
a character string specifying whether the residuals will be calculated under the recurrent event model or the failure time model. |
... |
additional parameters for future development. |
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.