estimating the the BTVC-VAR model.

For questions regarding programming in the EViews programming language.

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

ndzama
Posts: 29
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 13433 times
var_ca_forecast_10 Dec.wf1
(10.05 MiB) Downloaded 13653 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13598
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?

ndzama
Posts: 29
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 13740 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13598
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)

ndzama
Posts: 29
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 35023 times

EViews Gareth
Fe ddaethom, fe welon, fe amcangyfrifon
Posts: 13598
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

ndzama
Posts: 29
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: 29
Joined: Tue Aug 10, 2021 8:33 am

Re: estimating the the BTVC-VAR model.

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

Btvcvars are only available in EViews 13
Yes, I just realised now.

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

Re: estimating the the BTVC-VAR model.

Postby ndzama » Mon Sep 09, 2024 3:33 am

Dear EViews Experts,

When I run my code for the Bayesian time-varying coefficient VAR model, I get not errors, but at the same time I get no results. The code just runs quietly, and nothing shows up in the end. Please assist.

I am using EViews 13.

Kindly find the attached code and data.

Kind Regards,
Nwabisa Florence Ndzama
Attachments
WEO_data_for_Chapter 5_probabilities.xls
(7.86 MiB) Downloaded 13498 times
btvc_var model_bootstrapping.prg
(29.59 KiB) Downloaded 13089 times

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

Re: estimating the the BTVC-VAR model.

Postby EViews Gareth » Mon Sep 09, 2024 7:19 am

You have a space between the VAR command and its options.

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

Re: estimating the the BTVC-VAR model.

Postby ndzama » Mon Sep 09, 2024 10:39 am

Sorry Gareth, I made an amateur mistake.
But now I have a new and strange problem, the code runs without errors, I can see the estimation results for Australia, and then boom EViews shuts down. It just closes itself, like literally.

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

Re: estimating the the BTVC-VAR model.

Postby EViews Gareth » Mon Sep 09, 2024 12:46 pm

Is your copy of EViews up to date? If so, could you repost the corrected code?

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

Re: estimating the the BTVC-VAR model.

Postby ndzama » Wed Sep 11, 2024 1:06 am

Hi Gareth,

See attachment.

Kind Regards,
Nwabisa
Attachments
btvc_var model_bootstrapping.prg
(29.6 KiB) Downloaded 13236 times

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

Re: estimating the the BTVC-VAR model.

Postby EViews Gareth » Wed Sep 11, 2024 7:34 am

Thanks, we'll investigate.

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

Re: estimating the the BTVC-VAR model.

Postby ndzama » Thu Sep 12, 2024 9:08 am

Okay, Thanks Gareth.
Last edited by ndzama on Fri Sep 13, 2024 6:18 am, edited 1 time in total.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 2 guests