print.bayesianVARs_predict {bayesianVARs}R Documentation

Print method for bayesianVARs_predict objects

Description

Print method for bayesianVARs_predict objects.

Usage

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

Arguments

x

A bayesianVARs_predict object obtained via predict.bayesianVARs_bvar().

...

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)
print(predictions)

[Package bayesianVARs version 0.1.3 Index]