<>
Just make the -var label- empty before you call -esttab-. You could save
the -label- to a -local- and redefine it afterwards...
*****
******************
webuse ships, clear
xtset ship
*with empty var label
qui{
*empty var label
lab var accident " "
eststo clear
eststo:xtpoisson accident op_75_79 co_65_69 co_70_74 co_75_79,
exposure(service) irr
eststo:xtpoisson accident co_70_74 co_75_79, exposure(service) irr
}
esttab *, keep(co_70_74 co_75_79) varwidth(25) ///
noobs nogaps nodep label b(%5.3f) se(%5.2f) star(† 0.10 * 0.05 ** ///
0.01) compress
*with var label
label variable accident `"this is the label"'
qui{
eststo clear
eststo:xtpoisson accident op_75_79 co_65_69 co_70_74 co_75_79,
exposure(service) irr
eststo:xtpoisson accident co_70_74 co_75_79, exposure(service) irr
}
esttab *, keep(co_70_74 co_75_79) varwidth(25) ///
noobs nogaps nodep label b(%5.3f) se(%5.2f) star(† 0.10 * 0.05 ** ///
0.01) compress
*****
HTH
Martin
_______________________
----- Original Message -----
From: "Pierre Azoulay" <[email protected]>
To: <[email protected]>
Sent: Sunday, April 12, 2009 5:36 PM
Subject: st: odd behavior with esttab
Dear Sata listers:
I have been experimenting with esttab with some success. It does
everything I need, with one exception. I was wondering if any of you
had come across this problem:
Somehow, the dependent variable label always appears at the top of the
variables list (see : "weighted number of pubs" below). I am not
really sure why.
The command being used to produce the estimates is not part of
official stata -- it's a modification of xtpoisson, fe. Yet, I am not
quite sure why this should happen.
If you know how to get rid of this, drop me a line.
Regards,
Pierre
esttab *, keep(treat_it treat_young_it treat_recent_it) varwidth(25)
noobs nogaps nodep label b(%5.3f) se(%5.2f) star(† 0.10 * 0.05 **
0.01) compress
scalars("prop % of Collabs. Affected" "ll Log Likl." "N Nb. of Obs."
"N_g Nb. of Collabs." "N_clust Nb. of Superstars") sfmt(%10.2f
%10.0fc) mtitles("Collaboration Age" " " "Recent Coauthorship" " ");
-------------------------------------------------------------------------
(1) (2) (3) (4)
Collabo~e Recent ~p
-------------------------------------------------------------------------
weighted number of pubs
After Death -0.065* -0.071** -0.076** -0.087**
(0.03) (0.02) (0.02) (0.02)
After Death × Firs.. in~e -0.106** -0.061
(0.04) (0.04)
After Death × At least ~o -0.073* -0.022
(0.04) (0.04)
-------------------------------------------------------------------------
% of Collabs. Affected 29.98 29.92 29.17 29.17
Log Likl. -968,854 -1,824,284 -967,839 -1,822,664
Nb. of Obs. 153,508 294,943 153,508 294,943
Nb. of Collabs. 5,267 10,128 5,267 10,128
Nb. of Superstars 112 3,384 112 3,384
-------------------------------------------------------------------------
Standard errors in parentheses
† p<0.10, * p<0.05, ** p<0.01
--
-------------------------------------------------------------------
Pierre Azoulay
Assistant Professor of Strategy
Massachusetts Institute of Technology
Sloan School of Management
50 Memorial Drive — E52-555
Cambridge, MA 02142-1947
Tel [Sloan]: (617) 258-9766
Tel [NBER]: (617) 588-1464
Fax: (617) 253-2660
*
* 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/