ObtainPost: Obtain Posterior Draws

Description Usage Arguments

Description

Function to obtain draws from the posterior distribution of the survival curve.

Usage

1
2
ObtainPost(TrainX = NULL, Times, Event, TestX = NULL, parallel = F,
  NumCores = 2)

Arguments

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


nillen0/SurvBART documentation built on June 3, 2019, 6:58 p.m.