How to correct a Dummy variable for Autocorrelation?

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

Martin B
Posts: 12
Joined: Mon Feb 09, 2009 9:27 am

How to correct a Dummy variable for Autocorrelation?

Postby Martin B » Tue Feb 10, 2009 12:34 pm

Hi at all!

This question actually follows from another thread. However, I thought it would be useful to post it separately.

I have the following regression equation system:

Code: Select all

y_1t = a + b_1*x_t + c*z_1t y_2t = a + b_2*x_t + c*z_2t
Now, if I want to correct for autocorrelation, I can write (e.g. for the first equation)

Code: Select all

y_1t = a*(1-r) + b_1*(x_t-r*x_{t-1}) + c*(z_1t-r*z_1{t-1}) + r*y_1{t-1}
Now, a dummy variable is included in the regression system of the sort

Code: Select all

y_1t = a + b_1*x_t + c*z_1t + g*D*z_1t y_2t = a + b_2*x_t + c*z_2t + g*D*z_2t
Here, D can take either 1 or 0 and g is the coefficient before the Dummy variable.
My question is: how can I correct the Dummy variable for possible autocorrelation? Is it even important? The problem is: it is a dummy indicating 1 if the observation is after a certain date and 0 if the observation is before a certain date. So, after some time, all observations will have D=1.

I thank you very much.

Kind regards

M

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

Re: How to correct a Dummy variable for Autocorrelation?

Postby startz » Tue Feb 10, 2009 2:01 pm

Hi at all!

This question actually follows from another thread. However, I thought it would be useful to post it separately.

I have the following regression equation system:

Code: Select all

y_1t = a + b_1*x_t + c*z_1t y_2t = a + b_2*x_t + c*z_2t
Now, if I want to correct for autocorrelation, I can write (e.g. for the first equation)

Code: Select all

y_1t = a*(1-r) + b_1*(x_t-r*x_{t-1}) + c*(z_1t-r*z_1{t-1}) + r*y_1{t-1}
Now, a dummy variable is included in the regression system of the sort

Code: Select all

y_1t = a + b_1*x_t + c*z_1t + g*D*z_1t y_2t = a + b_2*x_t + c*z_2t + g*D*z_2t
Here, D can take either 1 or 0 and g is the coefficient before the Dummy variable.
My question is: how can I correct the Dummy variable for possible autocorrelation? Is it even important? The problem is: it is a dummy indicating 1 if the observation is after a certain date and 0 if the observation is before a certain date. So, after some time, all observations will have D=1.

I thank you very much.

Kind regards

M
You treat the dummy variable exactly like any other rhs variable.

Martin B
Posts: 12
Joined: Mon Feb 09, 2009 9:27 am

Re: How to correct a Dummy variable for Autocorrelation?

Postby Martin B » Tue Feb 10, 2009 2:19 pm

Hi Startz

Thank you for your answer.

So I can do the following?

Code: Select all

y_1t = a*(1-r) + b_1*(x_t-r*x_{t-1}) + c*(z_1t-r*z_1{t-1}) + r*y_1{t-1} + g*D*(z_1t-r*z_1{t-1})

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

Re: How to correct a Dummy variable for Autocorrelation?

Postby startz » Tue Feb 10, 2009 2:24 pm

Hi Startz

Thank you for your answer.

So I can do the following?

Code: Select all

y_1t = a*(1-r) + b_1*(x_t-r*x_{t-1}) + c*(z_1t-r*z_1{t-1}) + r*y_1{t-1} + g*D*(z_1t-r*z_1{t-1})
Not quite. My answer was a little careless. You need to treat D*z_1 as the RHS variable.

Code: Select all

y_1t = a*(1-r) + b_1*(x_t-r*x_{t-1}) + c*(z_1t-r*z_1{t-1}) + r*y_1{t-1} + g*(D*z_1t-r*D{t-1}*z_1{t-1})

Martin B
Posts: 12
Joined: Mon Feb 09, 2009 9:27 am

Re: How to correct a Dummy variable for Autocorrelation?

Postby Martin B » Tue Feb 10, 2009 2:47 pm

Thank you very much!

I already tested in Eviews. Coefficient before the dummy proved to be statistically insignificant. But at least I know now...

Kind regards

M


Return to “Estimation”

Who is online

Users browsing this forum: No registered users and 2 guests