residual_draws_BART: Get residual draw for BART model

View source: R/tidy-posterior-BART.R

residual_draws_BARTR 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 BART package.

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 .residual.

include_newdata

Should the newdata be included in the tibble?

include_sigsqs

Should the posterior sigma-squared draw be included?

Value

Tibble with residuals.


tidytreatment documentation built on March 18, 2022, 6:30 p.m.