View source: R/tidy-posterior-stan4bart.R
| predicted_draws.stan4bartFit | R Documentation |
stan4bart-package modelsGet prediction draws from posterior of stan4bart-package models
## S3 method for class 'stan4bartFit'
predicted_draws(
object,
newdata,
...,
value = ".prediction",
sample_new_levels = TRUE
)
object |
A |
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. |
sample_new_levels |
logical; if TRUE, levels out of the training sample will have random effects drawn from their posterior predictive distribution. If FALSE, their random effects will be fixed to 0. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.