residual_draws_BART {tidytreatment} | R Documentation |
Get residual draw for BART model
Description
Classes from BART
-package models
Usage
residual_draws_BART(
object,
response,
newdata = NULL,
value = ".residual",
include_newdata = TRUE,
include_sigsqs = FALSE
)
Arguments
object |
model from |
response |
Original response vector. |
newdata |
Data frame to generate predictions from. If omitted, original data used to fit the model. |
value |
Name of the output column for residual_draws; default is |
include_newdata |
Should the newdata be included in the tibble? |
include_sigsqs |
Should the posterior sigma-squared draw be included? |
Value
Tibble with residuals.
[Package tidytreatment version 0.2.2 Index]