residuals.emfrail {frailtyEM} | R Documentation |
Residuals for frailty models
Description
Residuals for frailty models
Usage
## S3 method for class 'emfrail'
residuals(object, type = "group", ...)
Arguments
object |
An |
type |
One of |
... |
Other arguments |
Details
For cluster , individual
and observation row
, we write the cumulative hazard contribution as
where is the baseline cumulative hazard correspinding to the row
.
When type == "individual"
, the returned residuals are equal to where
is the estimated frailty in cluster
.
When
type == "cluster"
, the returned residuals are equal to ,
Value
A vector corresponding to the Martingale residuals, either for each cluster or for each individual (row of the data).
[Package frailtyEM version 1.0.1 Index]