Loop ARMA model

For questions regarding programming in the EViews programming language.

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

Eva_87
Posts: 5
Joined: Thu Oct 18, 2012 10:32 am

Loop ARMA model

Postby Eva_87 » Thu Oct 18, 2012 10:40 am

Hey guys, I heard this is a great site for getting help. I need to loop an ARMA model, but I can only get a simple arma model like this one:

Code: Select all

for !i= 1 to 6 for !j= 1 to 6 equation name_abc_!i_!j.ls dnameabc c ar(!i) ma(!j) next next
so the output is actually dnameabc c ar(1) ma(1) and dname_abc c ar(5) ma(4) for example but I need:

dname_abc c ar(1) ar(2) ar(3) ma(1) ma(2) ma(3) ma(4) for example and not a simple model equation.
Last edited by Eva_87 on Sun Oct 21, 2012 3:59 am, edited 2 times in total.

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

Re: Loop ARMA model

Postby EViews Gareth » Thu Oct 18, 2012 10:53 am


Eva_87
Posts: 5
Joined: Thu Oct 18, 2012 10:32 am

Re: Loop ARMA model

Postby Eva_87 » Thu Oct 18, 2012 12:38 pm

Ohh that works :o ! amazing! Thank you soo much :D

Eva_87
Posts: 5
Joined: Thu Oct 18, 2012 10:32 am

Re: Loop ARMA model

Postby Eva_87 » Thu Oct 18, 2012 2:03 pm

One question though, now that it returns the best fitted model it says either that the process is nonstationary or it says that MA is noninvertible :S. So, where seems to be the problem?

startz
Non-normality and collinearity are NOT problems!
Posts: 3798
Joined: Wed Sep 17, 2008 2:25 pm

Re: Loop ARMA model

Postby startz » Thu Oct 18, 2012 3:24 pm

You might want to post the offending output. The issue is likely to be econometric rather than software.

Eva_87
Posts: 5
Joined: Thu Oct 18, 2012 10:32 am

Re: Loop ARMA model

Postby Eva_87 » Fri Oct 19, 2012 2:41 am

Never mind. I used the return percentages as dependent in the formula instead of the normal returns. When I used the normal returns, it did its job ;) :D
Last edited by Eva_87 on Fri Oct 19, 2012 3:44 am, edited 1 time in total.


Return to “Programming”

Who is online

Users browsing this forum: No registered users and 1 guest