estimating the the BTVC-VAR model.
Moderators: EViews Gareth, EViews Moderator, EViews Jason, EViews Matt
estimating the the BTVC-VAR model.
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
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.
Could you provide a program that just does the bit you're having trouble with?
Re: estimating the the BTVC-VAR model.
Dear Gareth
Kindly see the attached program.
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.
Code: Select all
var ca_{%c}_var05.btvcvar (t0=0)
Code: Select all
var ca_{%c}_var05.btvcvar(t0=0)
Re: estimating the the BTVC-VAR model.
I appreciate your timely responses, but I still get the same result. Kindly see the attached screenshot.
- Attachments
-
- BTVC.PNG (76.27 KiB) Viewed 35018 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.
Btvcvars are only available in EViews 13
Re: estimating the the BTVC-VAR model.
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.
It turns out that the issue is that I am using Eviews 11, and BTVC is a new edition in Eviews 13.
Thanks again.
Re: estimating the the BTVC-VAR model.
Yes, I just realised now.Btvcvars are only available in EViews 13
Re: estimating the the BTVC-VAR model.
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
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.
You have a space between the VAR command and its options.
Re: estimating the the BTVC-VAR model.
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.
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.
Is your copy of EViews up to date? If so, could you repost the corrected code?
Re: estimating the the BTVC-VAR model.
Hi Gareth,
See attachment.
Kind Regards,
Nwabisa
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.
Thanks, we'll investigate.
Re: estimating the the BTVC-VAR model.
Okay, Thanks Gareth.
Last edited by ndzama on Fri Sep 13, 2024 6:18 am, edited 1 time in total.
Who is online
Users browsing this forum: No registered users and 2 guests
