Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Indicate fixed-effects from -xtreg, fe- in -esttab- or -estout-


From   Carsten Sauer <[email protected]>
To   [email protected]
Subject   Re: st: Indicate fixed-effects from -xtreg, fe- in -esttab- or -estout-
Date   Thu, 31 May 2012 09:16:38 +0200

You could use the estadd command (part of the user-written command estout):

sysuse auto
eststo clear
eststo: xtreg weight length turn , fe i(rep78)
estadd local fixed "yes" , replace
eststo: xtreg weight length turn , re i(rep78)
estadd local fixed "no" , replace
esttab , cells(b) indicate(turn) s(fixed N, label("fixed effects"))


Best,
Carsten


Am 31.05.2012 04:47, schrieb Bert Jung:
Dear Statalisters,

I would like to output estimates from a -xtreg, fe- model with
-esttab- and want a row at the bottom of the table that indicates
"Yes" for the fixed-effects.  Since -xtreg- does not estimate these
coefficients, I cannot use the -estout- option -indicate( )- to do
this.

A silly example:

eststo: xtreg weight length turn , fe i(rep78)
esttab , cells(b) indicate("Turn var = turn")


Which generates the following:


-------------------------
                       (1)
                    weight
                         b
-------------------------
length           27.79437
_cons           -3262.035
Turn var              Yes
-------------------------
N                      69
-------------------------


I would like a row just like the "Turn var" that indicates that fixed
effects are present.  I don't need the name of the FE variable just
the indicator as such:

-------------------------
length           27.79437
_cons           -3262.035
Turn var              Yes
Fixed effects      Yes
-------------------------
N                      69
-------------------------


This problem was raised but not answered in
http://www.stata.com/statalist/archive/2010-11/msg00799.html

I am hoping that someone may have found the answer.  Thanks for any pointers.

Best Bert
*
*   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/

--

Carsten Sauer
SFB 882 "Von Heterogenitäten zu Ungleichheiten"
Teilprojekt A6 "Die Legitimation von Ungleichheiten - Strukturelle Bedingungen von Gerechtigkeitseinstellungen"
Fakultät für Soziologie
Universität Bielefeld
Postfach 10 01 31
33501 Bielefeld
Tel.: 0521 106-70056/-6948 (Sekr. Frau Fischer)
Fax: 0521 106-6479

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