--- "G.B.Li" <[email protected]> wrote:
> I use two methods to control for fixed effects: (1) use dummy
> variables, (2) demean all the variables.
>
> Results turn out to be highly close, but not identical. The
> difference is no more than 0.000001。
>
> In theory, they should be identical. How to explain the trivial
> differences?
>
> (I guess it is related to my huge sample size. When I try both
> methods with a very small dataset, there is no such difference.)
What happens if you create the demeaned variables as doubles (see -help
double-)?
-- Maarten
-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands
visiting address:
Buitenveldertselaan 3 (Metropolitan), room N515
+31 20 5986715
http://home.fsw.vu.nl/m.buis/
-----------------------------------------
*
* 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/