View source: R/predict.estimate.R
predict.explore | R Documentation |
explore
ObjectsModel Predictions for explore
Objects
## S3 method for class 'explore'
predict(
object,
newdata = NULL,
summary = TRUE,
cred = 0.95,
iter = NULL,
progress = TRUE,
...
)
object |
object of class |
newdata |
an optional data frame for obtaining predictions (e.g., on test data) |
summary |
summarize the posterior samples (defaults to |
cred |
credible interval used for summarizing |
iter |
number of posterior samples (defaults to all in the object). |
progress |
Logical. Should a progress bar be included (defaults to |
... |
currently ignored |
summary = TRUE
: 3D array of dimensions n (observations),
4 (posterior summary),
p (number of nodes). summary = FALSE
:
list containing predictions for each variable
# data
Y <- ptsd
# fit model
fit <- explore(Y, iter = 250,
progress = FALSE)
# predict
pred <- predict(fit,
progress = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.