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 at the end of May, and its replacement, statalist.org is already up and running.


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

re: st: to use 'fe' and 'cl' options


From   Christopher Baum <kit.baum@bc.edu>
To   <statalist@hsphsun2.harvard.edu>
Subject   re: st: to use 'fe' and 'cl' options
Date   Wed, 22 Dec 2010 11:29:56 -0500

<>
S. said

I am trying to estimate the regression below:
xi: xtivreg  y F.x1 x2 x3  L.x4  i.year if year > 1978, fe cl(id)

but it is impossible to use 'fe' and 'cl' together.
Even I found in the help manuel the statement like this:
vce(cluster id) and use it, I got ''vcetype 'cluster' not allowed'' error message.

How can I use both 'fe' anc cl together?


Use Mark Schaffer's -xtivreg2- from SSC, which allows one- and two-way clustering. It requires that you also install -ivreg2- and -ranktest- from SSC.

Maarten's suggestion that if it isn't in official Stata, it probably is statistically dubious (or at least controversial) is not quite correct. Neither -sureg- nor -reg3- allow for cluster SEs, for instance, although sureg is just GLS, and reg3 can reproduce OLS and 2SLS estimates (but not their standard errors if clustering is used). In fact neither of these official commands even allow for robust SEs, although they appear on almost every other Stata estimation command! I can only conclude that the obstacles are related to development priorities rather than sound statistical issues.

Kit

Kit Baum   |   Boston College Economics & DIW Berlin   |   http://ideas.repec.org/e/pba1.html
                              An Introduction to Stata Programming  |   http://www.stata-press.com/books/isp.html
   An Introduction to Modern Econometrics Using Stata  |   http://www.stata-press.com/books/imeus.html


*
*   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