Statalist


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

st: RE: Heteroskedasticity test with xtivreg2


From   "Schaffer, Mark E" <[email protected]>
To   <[email protected]>
Subject   st: RE: Heteroskedasticity test with xtivreg2
Date   Tue, 1 Dec 2009 19:18:42 -0000

Ricardo,

> -----Original Message-----
> From: [email protected] 
> [mailto:[email protected]] On Behalf Of 
> Ricardo Dias de Oliveira Brito
> Sent: 01 December 2009 18:55
> To: [email protected]
> Subject: st: Heteroskedasticity test with xtivreg2
> 
> Dear all,
> 
> Does anybody know how to perform the Pagan-Hall 
> heteroskedasticity test with xtivreg2? The command ivhettest 
> used with ivreg2 is not recognized.

Are you using a fixed effects estimator?  If so, you have two options:

1.  Estimate using ivreg2 but including the fixed effects as dummies.

If you do this, you should use the <varlist> option along with ivsq,
e.g.,

ivhettest z1 z2 z3, ivsq

otherwise the fixed effects will be included, the degrees of freedom
will be huge, and the power of the test will be nil.

2.  Transform your data using the mean-deviations transformation (Ben
Jann's -center- is ideal for this), estimate using ivreg2, and then run
ivhettest.

The only catch here is that the degrees of freedom used for the test
statistics will be wrong, because they won't correct for degrees of
freedom eaten up by the fixed effects (see any standard textbook for
this general point).  But correcting the test stat by hand shouldn't be
too hard.  For example, the White/Koenker version of the test is an
N*R-sq test.  If you have M fixed effects, then the right test stat will
be (N-M)*R-sq.  So just take the N*R-sq stat, multiply by (N-M)/N and
there you go.

Hope this helps.

--Mark

> 
> Thanks,
> Ricardo
> 
> DISCLAIMER:
> 
> Esta mensagem pode conter informa??o confidencial e/ou 
> privilegiada. Se voc? n?o for o destinat?rio ou a pessoa 
> autorizada a receber esta mensagem, n?o poder? usar, copiar 
> ou divulgar as informa??es nela contidas ou tomar qualquer 
> a??o baseada nessas informa??es. Se voc? recebeu esta 
> mensagem por engano, por favor avise imediatamente o 
> remetente, respondendo o presente e-mail e apague-o em seguida.
> This message may contain confidential and/or privileged 
> information. If you are not the addressee or authorized to 
> receive this for the addressee, you must not use, copy, 
> disclose or take any action based on this message or any 
> information herein. If you have received this message in 
> error, please advise the sender immediately by reply e-mail 
> and delete this message.
> 
> *
> *   For searches and help try:
> *   http://www.stata.com/help.cgi?search
> *   http://www.stata.com/support/statalist/faq
> *   http://www.ats.ucla.edu/stat/stata/
> 


-- 
Heriot-Watt University is a Scottish charity
registered under charity number SC000278.


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index