Description Usage Arguments Details Value
View source: R/emfrail_methods.R
Residuals for frailty models
1 2 |
object |
An |
type |
One of |
... |
Other arguments |
For cluster i, individual j and observation row k, we write the cumulative hazard contribution as
Λ_{ijk} = \exp(β^\top \mathbf{x}_{ijk}) Λ_{0, ijk}
where Λ_{0, ijk} is the baseline cumulative hazard correspinding to the row (i,j,k).
When type == "individual"
, the returned residuals are equal to z_i Λ_{ijk} where z_i is the estimated frailty in cluster i.
When type == "cluster"
, the returned residuals are equal to ∑_{j,k} Λ_{ijk},
A vector corresponding to the Martingale residuals, either for each cluster or for each individual (row of the data).
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.