epred_draws_BART: Get fitted draws from posterior of 'BART'-package models

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

epred_draws_BARTR Documentation

Get fitted draws from posterior of BART-package models

Description

Get fitted draws from posterior of BART-package models

Usage

epred_draws_BART(
  model,
  newdata = NULL,
  value = ".value",
  ...,
  include_newdata = TRUE,
  include_sigsqs = FALSE,
  scale = "real"
)

Arguments

model

A model from BART package.

newdata

Data frame to generate fitted values from. If omitted, defaults to the data used to fit the model.

value

The name of the output column for epred_draws; default ".value".

...

Arguments to pass to predict (e.g. BART:::predict.wbart).

include_newdata

Should the newdata be included in the tibble?

include_sigsqs

Should the posterior sigma-squared draw be included?

scale

Should the fitted values be on the real, probit or logit scale?

Value

A tidy data frame (tibble) with fitted values.


tidytreatment documentation built on Dec. 7, 2025, 1:07 a.m.