Skip to contents

Print method for summary.bayesianVARs_predict objects.

Usage

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

Arguments

x

A summary.bayesianVARs_predict object obtained via summary.bayesianVARs_predict().

...

Currently ignored.

Value

Returns x invisibly.

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.
#> 
#>  586 stable posterior draws remaining for prediction!
sum <- summary(predictions)
print(sum)
#> 
#> Prediction quantiles:
#> , , GDPC1
#> 
#>          t+1
#> 5%  -0.06812
#> 50% -0.01798
#> 95%  0.02909
#> 
#> , , CPIAUCSL
#> 
#>           t+1
#> 5%  -0.018438
#> 50% -0.008339
#> 95%  0.003312
#> 
#> , , FEDFUNDS
#> 
#>           t+1
#> 5%  -0.021399
#> 50% -0.004006
#> 95%  0.009963
#>