Skip to contents

Summary method for bayesianVARs_predict objects.

Usage

# S3 method for class 'bayesianVARs_predict'
summary(object, ...)

Arguments

object

A bayesianVARs_predict object obtained via predict.bayesianVARs_bvar().

...

Currently ignored!

Value

A summary.bayesianVARs_predict object.

Examples

# 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)
#> 'stable=TRUE': Calling 'stable_bvar()' to discard those posterior
#>           draws that do not fulfill the stable criterion.
#> 
#> 535/1000 stable posterior draws remaining for prediction!
summary(predictions)
#> 
#> Prediction quantiles:
#> , , GDPC1
#> 
#>          t+1
#> 5%  -0.06930
#> 50% -0.01887
#> 95%  0.02632
#> 
#> , , CPIAUCSL
#> 
#>           t+1
#> 5%  -0.020353
#> 50% -0.008351
#> 95%  0.002616
#> 
#> , , FEDFUNDS
#> 
#>           t+1
#> 5%  -0.021589
#> 50% -0.002639
#> 95%  0.015586
#>