compute_forecasts: Computes forecasts for VARs

View source: R/utilsVAR.R

compute_forecastsR Documentation

Computes forecasts for VARs

Description

This function computes forecasts for a given VAR.

Usage

compute_forecasts(v, num_steps)

Arguments

v

a VAR object as from fitVAR.

num_steps

the number of forecasts to produce.

Value

A matrix of dimension (number of variables) x (num_steps) containing the forecasted values for each variable at each forecast horizon.


sparsevar documentation built on Feb. 5, 2026, 1:07 a.m.