Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

residuals.reReg

Calculate Residuals for a ‘reReg’ Fit


Description

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.

Usage

## S3 method for class 'reReg'
residuals(object, model = c("recurrent", "failure"), ...)

Arguments

object

an object of class reReg returned by the reReg() function.

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.


reReg

Recurrent Event Regression

v1.4.0
GPL (>= 3)
Authors
Sy Han (Steven) Chiou [aut, cre], Chiung-Yu Huang [aut]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.