Recursive residuals and dummy variables

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

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Recursive residuals and dummy variables

Postby MOG » Wed Apr 30, 2014 8:16 am

Hi,

It seems it is not possible to get recursive residuals for the full sample when a dummy variable is inlcuded in the equation. Why is that?

Regards
Martin

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

Re: Recursive residuals and dummy variables

Postby EViews Gareth » Wed Apr 30, 2014 8:39 am

I'm not sure I understand the question. This seems to work just fine:

Code: Select all

create u 100 series y=nrnd series dum = nrnd>0 series x=nrnd equation eq1.ls y c x dum eq1.rls(r,s)

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Re: Recursive residuals and dummy variables

Postby MOG » Wed Apr 30, 2014 9:02 am

Yes, you're right. But for this case it does not work:

Code: Select all

create A 1980 2010 series y=Nrnd series x=nrnd Series dum = 0 Smpl 2000 2010 Series dum = 1 Smpl @All equation eq1.ls y c x dum eq1.rls(r,s)

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

Re: Recursive residuals and dummy variables

Postby EViews Gareth » Wed Apr 30, 2014 1:12 pm

Any sample ending before 2000 will be singular due to perfect collinearity.

MOG
Posts: 21
Joined: Sun Aug 25, 2013 6:42 am

Re: Recursive residuals and dummy variables

Postby MOG » Wed Apr 30, 2014 3:49 pm

Yes, of course, since in the smaller samples the dummy-variable values are constant, and the matrix of varible-data has reduced rank until the sample size is big enough to allow the dummy-variable to switch values. Thanks!


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests