Classes from BART
-package models
residual_draws_BART(
object,
response,
newdata = NULL,
value = ".residual",
include_newdata = TRUE,
include_sigsqs = FALSE
)
Tibble with residuals.
model from BART
package.
Original response vector.
Data frame to generate predictions from. If omitted, original data used to fit the model.
Name of the output column for residual_draws; default is .residual
.
Should the newdata be included in the tibble?
Should the posterior sigma-squared draw be included?