predict.softbart_regression | R Documentation |
Computes predictions from a softbart_regression
object on new data.
## S3 method for class 'softbart_regression'
predict(object, newdata, iterations = NULL, ...)
object |
A |
newdata |
A dataset to construct predictions on. |
iterations |
The iterations to get predictions on; includes all of iterations including burn-in and thinning iterations. Defaults to the saved iterations, running from |
... |
Other arguments passed to predict. |
A list containing
mu
: samples of the predicted value for each observation and iteration.
mu_mean
: posterior predicted values for each observation.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.