VAR forecast

For notifying us of what you believe are bugs or errors in EViews.
Please ensure your copy of EViews is up-to-date before posting.

Moderators: EViews Gareth, EViews Moderator

tvonbrasch
Posts: 569
Joined: Fri Apr 15, 2011 5:35 am

VAR forecast

Postby tvonbrasch » Sun Jun 15, 2025 5:29 am

Hi,

when running the code below, i get the error message:

No scenario specified in "VAR1.FORECAST _FC" on line 20.

but, there is no scenario-option in a VAR object? Is this a bug?

Thomas

Code: Select all

%var_name = "var1" ' Name of the VAR object %est_sample = "1990Q1 2024Q4" ' Estimation sample ' --- STEP 2: CREATE WORKFILE AND SYNTHETIC DATA --- wfcreate q 1960Q1 2100 ' Generate synthetic data for variables series y = 100 + 0.5*@trend + 10*@nrnd ' Dependent variable series y_star = 100 + 0.6*@trend + 8*@nrnd ' Target variable series output_gap = 2*@nrnd ' Output gap series inflation_rate = 1 + 0.5*@nrnd ' Inflation rate ' --- STEP 3: GROUP VARIABLES AND SET ESTIMATION SAMPLE --- group var_vars y_star output_gap inflation_rate smpl {%est_sample} ' --- STEP 4: ESTIMATE MULTI-VARIABLE VAR --- var {%var_name}.ls 1 2 var_vars ' VAR(2) with 3 variables smpl 2020 @last {%var_name}.forecast _fc ' Generate forecasts with suffix "_fc"

EViews Matt
EViews Developer
Posts: 583
Joined: Thu Apr 25, 2013 7:48 pm

Re: VAR forecast

Postby EViews Matt » Mon Jun 16, 2025 3:03 pm

Hello,

It's indeed a bug. It'll be fixed in the next patch.


Return to “Bug Reports”

Who is online

Users browsing this forum: No registered users and 2 guests