residuals.emfrail function

Residuals for frailty models

Residuals for frailty models

## S3 method for class 'emfrail' residuals(object, type = "group", ...)

Arguments

  • object: An emfrail object
  • type: One of cluster or individual
  • ...: Other arguments

Returns

A vector corresponding to the Martingale residuals, either for each cluster or for each individual (row of the data).

Details

For cluster ii, individual jj and observation row kk, we write the cumulative hazard contribution as

Λijk=exp(βxijk)Λ0,ijk \Lambda_{ijk} = \exp(\beta^\top \mathbf{x}_{ijk}) \Lambda_{0, ijk}

where Λ0,ijk\Lambda_{0, ijk} is the baseline cumulative hazard correspinding to the row (i,j,k)(i,j,k).

When type == "individual", the returned residuals are equal to ziΛijkz_i \Lambda_{ijk} where ziz_i is the estimated frailty in cluster ii. When type == "cluster", the returned residuals are equal to j,kΛijk\sum_{j,k} \Lambda_{ijk},

  • Maintainer: Theodor Adrian Balan
  • License: GPL (>= 2)
  • Last published: 2019-09-22