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: RE: Seasonal Dummies and Autocorrelation

From   Beatrice Crozza <>
To   statalist <>
Subject   st: AW: RE: Seasonal Dummies and Autocorrelation
Date   Sat, 24 Jul 2010 12:01:44 +0100

Dear Martin and Nick,

thank you very much for your help.

This is what I did to remove seasonality from my data and then I did
again a chi square test, to check if after  this procedure there is
independence in my data:

tsset time
su  y, mean
local mu = r(mean)
cap noi gen newvar=`mu'
reg yL(1/6).y dum*, nocon
predict double ySA, residuals
replace ySA=ySA+`mu'

Then, I did again my chi square test, to see if now there is independence:

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

Unfortunately, also after this there is dependence in my data.

However, when I checked with a graph my new seasonal  adjusted series:

tsline y ySA, lpattern (solid dash)
I saw no difference in the series!

So, I think that I did something wrong and my new series is not
seasonally adjusted.

Could you please help me to understand what I am doing wrong?

Thank you very much.

*   For searches and help try:

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