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]

Re: st: How to test heterokedasticity for 120 periods

From   Roberto Liebscher <>
Subject   Re: st: How to test heterokedasticity for 120 periods
Date   Wed, 20 Feb 2013 08:57:49 +0100

Hi Xixi,

although I do not know exactly but why are you testing for heteroskedasticity for each period separately (Is it appropriate in your case to estimate your model for each period subsample seperately?) you could loop over the regressions using a command like this

forval i = num1/num2 {
quietly reg depvar indepvar if period == `i'
quietly estat hettest
display "Period " "`i'"
display `r(p)'

If you want to conduct an ANOVA for the period groups this link might be helpful:


Roberto Liebscher
Catholic University of Eichstaett-Ingolstadt
Department of Business Administration
Chair of Banking and Finance
Auf der Schanz 49
D-85049 Ingolstadt

Am 20.02.2013 01:01, schrieb Xixi Lin:

I am trying to test test heterokedasticity for 120 periods. I randomly
tested for 3 periods, using white tests, and the result shows it is
homokedasticity. But I want to make sure that all 120 periods are
homokedasticity. Does anyone knows how to write a loop to test it? As
a result, I hope it tells me which period or if any periods are not

Thanks a lot.

Xixi Lin
*   For searches and help try:

*   For searches and help try:

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