View source: R/SurvivalWrappers.R
| SurvivalBART | R Documentation |
Fits an Accelerated Failure Time (AFT) model using the classical
Bayesian Additive Regression Trees (BART) prior:
\log(Y) = f(x) + \varepsilon.
SurvivalBART(
time,
status,
X_train,
X_test = NULL,
timescale = "time",
number_of_trees = 200,
k = 2,
N_post = 1000,
N_burn = 1000,
verbose = TRUE,
...
)
time |
Outcome vector of right-censored (non-negative) survival times. |
status |
Event indicator (1 = event, 0 = censored). |
X_train |
Design matrix for training data. |
X_test |
Optional test matrix. If NULL, predictions are computed at
the column means of |
timescale |
Either |
number_of_trees |
Number of trees in the ensemble. Default is 200. |
k |
Scaling constant used to calibrate the prior variance of the step heights. |
N_post |
Number of posterior samples to store. |
N_burn |
Number of burn-in iterations. |
verbose |
Logical; print sampling progress. |
... |
Additional arguments passed to |
This function provides a survival-specific interface for classical BART under an AFT formulation for right-censored outcomes.
Structural regularisation is induced through the standard Gaussian leaf prior and tree depth prior of Chipman, George & McCulloch (2010).
Users requiring alternative shrinkage priors (e.g., Horseshoe or
Dirichlet splitting priors) should use ShrinkageTrees
directly.
Chipman, H. A., George, E. I., & McCulloch, R. E. (2010). Bayesian Additive Regression Trees. Annals of Applied Statistics.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.