Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: problem with -xtpcse-


From   [email protected]
To   [email protected]
Subject   st: RE: problem with -xtpcse-
Date   Fri, 24 Jan 2003 11:09:47 -0600

Marcus Poschke ([email protected]) wrote:

> I am wondering if -xtpcse- really performs just ordinary OLS, as Stata's
> help says. If this was so, a regression with -xtpcse- of mean-differenced
> data (within transformation) should give me the same coefficients as one
> with -xtreg, fe- on the original data, only with standard errors adapted for
> heteroskedasticity and contemporaneous cross section correlation (assuming
> no autocorrelation). However, I get both different coefficients and an even
> more different R-square. Does anyone have an idea of what could be the
> reason?

When you removed the group means before fitting your model with -xtpcse- did
you also add the overall mean back in? That is what -xtreg, fe- does. An easy
way to insure that you are using the same data is to use -xtdata, fe- to
perform the transformation and then use the resulting data with -xtpcse-.

Allen McDowell
[email protected]

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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