View source: R/utility_functions.R
summary.bayesianVARs_predict | R Documentation |
Summary method for bayesianVARs_predict
objects.
## S3 method for class 'bayesianVARs_predict'
summary(object, ...)
object |
A |
... |
Currently ignored! |
A summary.bayesianVARs_predict
object.
# Access a subset of the usmacro_growth dataset
data <- usmacro_growth[,c("GDPC1", "CPIAUCSL", "FEDFUNDS")]
# Split data in train and test
train <- data[1:(nrow(data)-4),]
test <- data[-c(1:(nrow(data)-4)),]
# Estimate model using train data only
mod <- bvar(train, quiet = TRUE)
# Simulate from 1-step ahead posterior predictive
predictions <- predict(mod, ahead = 1L)
summary(predictions)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.