MA terms with panel data

For technical questions regarding estimation of single equations, systems, VARs, Factor analysis and State Space Models in EViews. General econometric questions and advice should go in the Econometric Discussions forum.

Moderators: EViews Gareth, EViews Moderator

sfawver
Posts: 29
Joined: Wed Aug 25, 2010 9:15 am

MA terms with panel data

Postby sfawver » Fri Mar 16, 2012 4:05 pm

I have 436 regions with 184 observations each I'm trying to forecast. When I include the MA term I get an error saying they're not supported in panel data.

I'm only interested in getting the forecasted values for each each region. Not anything to do with panel data.

Is there a workaround? Like maybe including an id and then adjusting the id by adding observations to it as it loops through the regions?


eviews 7.2
Attachments
equations.prg
(1.14 KiB) Downloaded 395 times
data_doesntwork.wf1
(29.53 KiB) Downloaded 323 times
data_works.wf1
(859.11 KiB) Downloaded 316 times

sfawver
Posts: 29
Joined: Wed Aug 25, 2010 9:15 am

Re: MA terms with panel data

Postby sfawver » Fri Mar 16, 2012 4:06 pm

another file needed for equations to run.
Attachments
All436areas.xls
(45 KiB) Downloaded 427 times

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

Re: MA terms with panel data

Postby EViews Gareth » Fri Mar 16, 2012 4:11 pm

The only thing you can do is estimate in a non-panel workfile. You could either copy each cross-section to a time-series page one at a time on that page, or you could convert your panel to a pool and estimate each cross-section individually on that pool page.

sfawver
Posts: 29
Joined: Wed Aug 25, 2010 9:15 am

Re: MA terms with panel data

Postby sfawver » Fri Mar 16, 2012 4:32 pm

is there a way for me to add years to this within the loop?

existing
smpl {%FirstActual} {%LastActual} if newmsa=allmsa(!j)

desired
smpl {%FirstActual}+1yr {%LastActual}+1yr if newmsa=allmsa(!j)

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

MA terms with panel data

Postby EViews Gareth » Fri Mar 16, 2012 6:50 pm

Use the @dateadd function along with @datestr and @dateval to create a string containing the dates you want, then use those in the smpl command.

Aijan
Posts: 10
Joined: Tue Nov 05, 2013 3:43 am

Re: MA terms with panel data

Postby Aijan » Sat Nov 16, 2013 1:39 am

Hi there,

Could you please help me. While estimating a panel model, I came up with an autocorrelation problem. From the ACF and PACF functions I see that the model contains both AR and MA terms. However, I found out that eviews does not allow including MA terms in estimation of panel.

I am using Least Squares, cross-section fixed. Is there a way to take both AR and MA terms into account (maybe through different estimation method or through including some terms that would control for MA).

P.S. I am using EViews 8.
P.S.S. Estimating ARMA model for each cross-section serparately is not a way for me.

Thank you!

Aijan
Posts: 10
Joined: Tue Nov 05, 2013 3:43 am

Re: MA terms with panel data

Postby Aijan » Sat Nov 16, 2013 1:43 am

I also found that FGLS can take both heteroscedasticity and autocorrelation problems into account. But found that EViews does not allow estimating FGLS models as well :(


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests