Developer functions for predictions via BART models
bartMachine_interval_calc(new_data, obj, ci = TRUE, level = 0.95)dbart_predict_calc(obj, new_data, type, level = 0.95, std_err = FALSE)
A rectangular data object, such as a data frame.
A parsnip object.
Confidence (TRUE) or prediction interval (FALSE)
Confidence level.
A single character value or NULL
. Possible values
are "numeric"
, "class"
, "prob"
, "conf_int"
, "pred_int"
,
"quantile"
, "time"
, "hazard"
, "survival"
, or "raw"
. When NULL
,
predict()
will choose an appropriate value based on the model's mode.
Attach column for standard error of prediction or not.