View source: R/predict.estimate.R
predict.var_estimate | R Documentation |
var_estimate
ObjectsModel Predictions for var_estimate
Objects
## S3 method for class 'var_estimate'
predict(object, summary = TRUE, cred = 0.95, iter = NULL, progress = TRUE, ...)
object |
object of class |
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 |
The predicted values for each regression model.
# data
Y <- subset(ifit, id == 1)[,-1]
# fit model with alias (var_estimate also works)
fit <- var_estimate(Y, progress = FALSE)
# fitted values
pred <- predict(fit, progress = FALSE)
# predicted values (1st outcome)
pred[,,1]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.