estimating the the BTVC-VAR model.

For questions regarding programming in the EViews programming language.

Moderators: EViews Gareth, EViews Jason, EViews Moderator, EViews Matt

ndzama
Posts: 15
Joined: Tue Aug 10, 2021 8:33 am

estimating the the BTVC-VAR model.

Postby ndzama » Wed Jan 31, 2024 4:35 pm

Greetings!

I am estimating the the BTVC-VAR model. However, my results return a "No Estimates" result. Please advise.

For !c = 1 to 3 'number of selected countries
%c = table_countries(!c,1)

For !smpl = 0 to !num_forecasts

' 1st estimate the BTVC-VAR model
smpl %start_est_date %start_forecast_date-1+!smpl
var ca_{%c}_var05.btvcvar (t0=0) 1 2 CA_{%c} GDP_GROWTH_{%c} TRADE_OPENNESS_{%c} REER_ZD_{%c} 'RESULTS: THE MODEL HAS NO ESTIMATES.

' 2nd calculate out of sample forecasts and forecasts errors
smpl %start_forecast_date+!smpl %start_forecast_date+!smpl+!forc_period_ahead 'out-of-sample
ca_{%c}_var05.forecast(f=na) NNT 'Error Message: The model contains errors and could not be compiled in "CA_{%C}_VAR05.FORECAST(F=NA) NNT" on line 789.
genr errorf_gdp_growth_{%c}_var05 = gdp_growth_{%c} - gdp_growth_{%c}_NNT 'gdp_growth forecasts error
genr errorf_ca_{%c}_var05 = CA_{%c} - CA_{%c}_NNT ' CA forecasts error
genr errorf_reer_zd_{%c}_var05 = reer_zd_{%c} - reer_zd_{%c}_NNT ' reer_zd forecasts error
genr errorf_trade_openness_{%c}_var05 = trade_openness_{%c} - trade_openness_{%c}_NNT ' trade_openness forecasts error

Next ' !smpl

Next '!c

Kind Regards,
Nwabisa
Attachments
myvar_17 dec.prg
(55.18 KiB) Downloaded 47 times
var_ca_forecast_10 Dec.wf1
(10.05 MiB) Downloaded 53 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13323
Joined: Tue Sep 16, 2008 5:38 pm

Re: estimating the the BTVC-VAR model.

Postby EViews Gareth » Wed Jan 31, 2024 5:02 pm

Could you provide a program that just does the bit you're having trouble with?
Follow us on Twitter @IHSEViews

ndzama
Posts: 15
Joined: Tue Aug 10, 2021 8:33 am

Re: estimating the the BTVC-VAR model.

Postby ndzama » Thu Feb 01, 2024 1:16 am

Dear Gareth

Kindly see the attached program.
Attachments
my_btvc.prg
(5.06 KiB) Downloaded 49 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13323
Joined: Tue Sep 16, 2008 5:38 pm

Re: estimating the the BTVC-VAR model.

Postby EViews Gareth » Thu Feb 01, 2024 8:26 am

Code: Select all

 var ca_{%c}_var05.btvcvar (t0=0)
 

should be

Code: Select all

 var ca_{%c}_var05.btvcvar(t0=0)
 
Follow us on Twitter @IHSEViews

ndzama
Posts: 15
Joined: Tue Aug 10, 2021 8:33 am

Re: estimating the the BTVC-VAR model.

Postby ndzama » Thu Feb 01, 2024 12:45 pm

I appreciate your timely responses, but I still get the same result. Kindly see the attached screenshot.
Attachments
BTVC.PNG
BTVC.PNG (76.27 KiB) Viewed 900 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13323
Joined: Tue Sep 16, 2008 5:38 pm

Re: estimating the the BTVC-VAR model.

Postby EViews Gareth » Fri Feb 02, 2024 6:54 am

Btvcvars are only available in EViews 13
Follow us on Twitter @IHSEViews

ndzama
Posts: 15
Joined: Tue Aug 10, 2021 8:33 am

Re: estimating the the BTVC-VAR model.

Postby ndzama » Fri Feb 02, 2024 7:35 am

Dear Gareth,

It turns out that the issue is that I am using Eviews 11, and BTVC is a new edition in Eviews 13.

Thanks again.

ndzama
Posts: 15
Joined: Tue Aug 10, 2021 8:33 am

Re: estimating the the BTVC-VAR model.

Postby ndzama » Fri Feb 02, 2024 7:38 am

EViews Gareth wrote:Btvcvars are only available in EViews 13


Yes, I just realised now.


Return to “Programming”

Who is online

Users browsing this forum: Google [Bot] and 21 guests