[R] Bayesian cox model: spBayesSurv package

David Winsemius dwinsemius at comcast.net
Tue Dec 27 21:41:58 CET 2016


Cross posting is deprecated on rhelp but if you do so, please at least post a link to the stackoverflow address for the duplicate question.

Sent from my iPhone

> On Dec 27, 2016, at 6:52 AM, radhika sundar <radhikasundar520 at gmail.com> wrote:
> 
> I am going through R's function indeptCoxph in the spBayesSurv package
> which fits a bayesian Cox model. I am confused by some of the input
> parameters to this function.
> 
> What is the role of the "prediction" input parameter? Should it not only
> contain the predictor covariates? In the R code example, the authors have
> included a vector "s" which was used to initially simulate the survival
> times data in their example as well as the predictors. I'm not sure what
> this "s" is.
> 
> Given that my data is just a set of survival times between 0 and 100, along
> with censored (yes/no) information, how would I use this function and how
> should I handle the input "s"?
> 
> 
> Thanks for any help!
> 
>    [[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list