epred_draws.stan4bartFit: Get expected prediction draws from posterior of...

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

epred_draws.stan4bartFitR Documentation

Get expected prediction draws from posterior of stan4bart-package models

Description

Typically referred to as fitted value draws on response scale, where appropriate.

Usage

## S3 method for class 'stan4bartFit'
epred_draws(object, newdata, ..., value = ".epred", re_formula = NULL)

Arguments

object

A stan4bartFit object.

newdata

Data frame to generate predictions from [optional].

...

Additional arguments passed to the underlying prediction method for the type of model given.

value

The name of the output column.

re_formula

If NULL (default), include all group-level effects; if NA, include no group-level effects.


tidytreatment documentation built on April 4, 2025, 5:11 a.m.