Function to obtain draws from the posterior distribution of the survival curve.
1 2 | ObtainPost(TrainX = NULL, Times, Event, TestX = NULL, parallel = F,
NumCores = 2)
|
TrainX |
Explanatory variables for training (in sample) data. Must be a matrix with rows corresponding to observations and columns to variables |
Times |
The time of event or right-censoring |
Event |
The event indicator: 1 is and event while 0 is censored |
TestX |
Explanatory variables for test (out of sample) data. Must be a matrix and have the same structure as TrainX |
parallel |
Whether to obtain posterior draws across multiple cores. |
NumCores |
Number of cores to run on, default is 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.