epred_draws.lbart: Get fitted draws from posterior of 'lbart' model

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

epred_draws.lbartR Documentation

Get fitted draws from posterior of lbart model

Description

Get fitted draws from posterior of lbart model

Usage

## S3 method for class 'lbart'
epred_draws(
  object,
  newdata,
  value = ".value",
  ...,
  ndraws = NULL,
  include_newdata = TRUE,
  include_sigsqs = FALSE
)

Arguments

object

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

...

Not currently in use.

ndraws

Not currently implemented.

include_newdata

Should the newdata be included in the tibble?

include_sigsqs

Should the posterior sigma-squared draw be included?

Value

A tidy data frame (tibble) with fitted values.


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