Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, is already up and running.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: AW: Seasonal Dummies and Autocorrelation

From   "Martin Weiss" <>
To   <>
Subject   st: AW: Seasonal Dummies and Autocorrelation
Date   Fri, 23 Jul 2010 14:10:38 +0200


" Replace ySA= ySA + ?mu?
I receive this error message:  ?mu? invalid name."

Note that on the bottom of page 175 of the book you mentioned, there is a
code segment that puts the mean into the -local- "mu". You want to run this
segment as well...


-----Ursprüngliche Nachricht-----
[] Im Auftrag von Beatrice Crozza
Gesendet: Freitag, 23. Juli 2010 14:07
An: statalist
Betreff: st: Seasonal Dummies and Autocorrelation

Dear All,

I need to calculate the autocorrelation of my variable (y) and to do a
chi-square test that the first 6 autocorrelations are zero. I want  to
take into account the seasonal effect. I constructed dummy variables
for the days of the week and they are significant.

 reg y L(1/6).y dum*, nocon

Then I performed my Chi square test  in this way:

testparm L1.y L2.y L3.y L4.y L5.y L6.y dum1 dum2 dum3 dum4 dum5 dum6

1)Is it correct?

2)I saw an example on the book ?An introduction to modern econometrics
using Stata? by Christopher  Baum (pag. 175)on how to remove
seasonality and I would like to regress again my seasonal adjusted
variable to check again for independence, however, when I try to give
the command for my data:

Replace ySA= ySA + ?mu?
I receive this error message:  ?mu? invalid name.

Could you please help me?

Thank you very much.


*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2016 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index