Search found 12 matches

by dongyadu
Mon Oct 03, 2011 6:23 am
Forum: Suggestions and Requests
Topic: In sample and out of sample test
Replies: 4
Views: 36004

Re: In sample and out of sample test

Hi SweivE I am trying to calculate the mean squared prediction error for the one month step ahead out of sample forecasting with rolling window forecasting and recursive window forecasting scheme. But, I don't know how to write the code following with below program. Please can you help me? Many Than...
by dongyadu
Tue Sep 27, 2011 8:43 am
Forum: Programming
Topic: Random walk model rolling forecasting & obtaining the MSPE
Replies: 8
Views: 19676

Re: Random walk model rolling forecasting & obtaining the MS

Hi, Many Thanks But, I am not sure how exactly I shall use the @sumsq in the loop. please can you explain how to write the code? is it something like below. 'create some data wfcreate u 100 'rolling window size window=20 'create some series series y =nrnd series yf =nrnd %actual=@elem(y,@otod) %fit=...
by dongyadu
Mon Sep 26, 2011 8:41 am
Forum: Programming
Topic: Random walk model rolling forecasting & obtaining the MSPE
Replies: 8
Views: 19676

Re: Random walk model rolling forecasting & obtaining the MS

I'm not sure if I can tell if that is correct or not. Hi Gareth Please could you advise how to write the code to calculate the mean squared prediction error depending on the rolling forecast? I have problem to write code for a loop of calculation the mspe value. For example. firstly, using the firs...
by dongyadu
Sat Sep 24, 2011 8:09 am
Forum: Bug Reports
Topic: Eviews 7 commands and programming reference print error
Replies: 1
Views: 5163

Eviews 7 commands and programming reference print error

Hi,

There is a printing error in the Eviews7 commands and programming reference page 75.

• @upper(str): returns the upper case representation of the string str.
@length("I did not do it")
returns the string “I DID NOT DO IT”.

This should be @upper(“I did not do it”)

Dongya
by dongyadu
Thu Sep 22, 2011 3:49 am
Forum: Programming
Topic: Random walk model rolling forecasting & obtaining the MSPE
Replies: 8
Views: 19676

Re: Random walk model rolling forecasting & obtaining the MS

Hi, Gareth, Thanks a lot. I have got another question. suppose if I have data from 1999m1 to 2011m4. Then, the forecasting window is from 2007m1 to 2011m4. And, I want to obtain the mean squared error prediction error for 2007m1, 2007m2, 2007m3.......2011m4 each one month ahead. So. there will be 52...
by dongyadu
Wed Sep 21, 2011 2:10 am
Forum: Programming
Topic: Random walk model rolling forecasting & obtaining the MSPE
Replies: 8
Views: 19676

Re: Random walk model rolling forecasting & obtaining the MS

Hi, Gareth Thanks for your reply. Please can you show me what's the right way to do the one step ahead forecasting? I have modified the code as below. '4-period-ahead forecast %4pers = @otod(@dtoo(%start)+!i+!window-1) 'start point %4pere = @otod(@dtoo(%start)+!i+!window) 'end point compare with the...
by dongyadu
Tue Sep 20, 2011 1:23 am
Forum: Programming
Topic: Random walk model rolling forecasting & obtaining the MSPE
Replies: 8
Views: 19676

Random walk model rolling forecasting & obtaining the MSPE

hi, I want to estimate the random walk model y=y(-1)+e with 148 data. Then I want to obtain the mean squared forecasting error for each one step ahead forecasting. The estimation window is from observation 1 to 96, and the forecasting window is from 97 to 148. So the window size is 96. I have write ...
by dongyadu
Thu Sep 15, 2011 8:54 am
Forum: Program Repository
Topic: Basic Rolling Regression
Replies: 134
Views: 4690504

Re: Basic Rolling Regression

What have you done so far? Hi, Many Thanks for the reply. To be honest, I haven't done much. :-(. I am totally new to programming. But, I have run the test of forecasting equation with data from 1999m1 to 200612. I have also tried to change the Esther's code to fit my work, but, it didn't work. I w...
by dongyadu
Thu Sep 15, 2011 7:26 am
Forum: Program Repository
Topic: Basic Rolling Regression
Replies: 134
Views: 4690504

Re: Basic Rolling Regression

Hi all, I have same question as above My forecasting equation is: Exchange rate=a_1+a_2*inflation+a_3*outputgap+a_4*real exchange rate+a5*interest rate differential I want to run the out-of sample forecasting test with both rolling window forecasting scheme and recursive window forecasting scheme. I...
by dongyadu
Tue Sep 13, 2011 1:29 pm
Forum: Programming
Topic: Recursive forecasting
Replies: 14
Views: 37113

Re: Recursive forecasting

You might find Esther's program here: http://forums.eviews.com/viewtopic.php?f=15&t=878 useful. It performs rolling forecasts, which is, I think, what you're describing. Thank you for the answer, I will definetely spend some time trying to implement that basic rolling regression program. I'm so...
by dongyadu
Tue Sep 13, 2011 11:49 am
Forum: Programming
Topic: Rolling Regression Forecasting
Replies: 6
Views: 15642

Re: Rolling Regression Forecasting

Hi, Thank you very much for your reply. I want to do the one month ahead out-of sample forecasting. I have data from 1999m1 to 2011m4. and I want to forecast the period of 2008m1 to 2011m4. Then, I want to calculate the mean squared prediction error for the models. But, I don't understand what is mo...
by dongyadu
Mon Sep 05, 2011 8:54 pm
Forum: Programming
Topic: Rolling Regression Forecasting
Replies: 6
Views: 15642

Rolling Regression Forecasting

Hi, I am new to this forum. Aslo, I am new to Eveiws. I want to ask if anyone know how to conduct the rolling regression forecasting on Eviews 7. I want to test four exchange rate determination models and do the out of sample forecasting. Then I want to obtain the mean squared prediction errors for ...

Go to advanced search