Learn R Programming

spBayesSurv (version 1.1.1)

frailtyprior: Frailty prior specification

Description

This function allows one to add a frailty term to the linear predictor of semiparametric PH, PO and AFT models.

Usage

frailtyprior(prior="car", ...)

Arguments

prior

a name string to be entered, e.g, "car", "iid", "kriging" 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.

References

Zhou, H. and Hanson, T. (2017). A unified framework for fitting Bayesian semiparametric models to arbitrarily censored spatial survival data. arXiv preprint arXiv:1701.06976.