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, statalist.org is already up and running.


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

st: AW: Adjusting Standard Errors after Manually time demeaning the data.


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Adjusting Standard Errors after Manually time demeaning the data.
Date   Tue, 29 Jun 2010 10:26:26 +0200

<> 


" I decided to manually time demean the data by using the
"center" command."


-center- is not an official command, but user-written by Ben Jann, and
obtained from -ssc- via -ssc install center-.



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von natasha agarwal
Gesendet: Dienstag, 29. Juni 2010 10:11
An: statalist@hsphsun2.harvard.edu
Betreff: st: Adjusting Standard Errors after Manually time demeaning the
data.

Dear Everyone,

I am estimating a fixed effect model on an unbalanced panel data.
Since I wanted only robust standard errors and Stata 10 by default
reports results where the Standard Errors are clustered at the panel
identifier, I decided to manually time demean the data by using the
"center" command.

bysort number: center lnrval lnk lnw lnvfdi y14-y18, casewise prefix(c)
reg  clnrval clnk clnw clnvfdi cy14 cy15 cy16 cy17 cy18, vce(robust)

Once I obtain the results, I wanted to adjust the Standard Errors for
the degrees of freedom. I gave the following line of commands

mat b=e(b)
scalar vadj=e(df_r)/(e(N)-1-(e(df_m))
scalar vadj=e(df_r)/(e(N)-1-(e(df_m)))
matrix V=vadj*e(V)
eret post b V
ereturn display

I was not sure if this is correct since there seems to be no
difference in the standard errors reported after ereturn display.

Can anyone please help me with the same?

Thanks
Natasha
*
*   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/


*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index