This function allows one to add a frailty term to the linear predictor of semiparametric PH, PO and AFT models.
frailtyprior(prior="car", ...)
a name string to be entered, e.g, "car"
, "iid"
, or "grf"
; see the example in frailtyGAFT
and survregbayes2
.
Cluster ID to be entered for clustered data or locations for point-referenced data; see the example in frailtyGAFT
and survregbayes2
.
Haiming Zhou and Timothy Hanson