predict.estimate: Prediction from an estimate Object
Description
Prediction from an estimate Object
Usage
# S3 method for estimate
predict(object, iter = 500, cred = 0.95, newdata = NULL, summary = TRUE, ...)
Arguments
object
object of class estimate
iter
iters used to compute the residuals
cred
credible interval used for summarizing
newdata
an optional data frame for obtaining predictions (e.g., on test data)
summary
summarize the posterior samples (Default is TRUE).
Setting it to FALSE can be used to then compute performance metrics.
...
currently ignored
Value
summary = TRUE: 3D array of dimensions n (observations),
4 (posterior summary),
p (number of nodes). summary = FALSE:
list containing predictions for each variable