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: strange labels in outreg2


From   Martin Hällsten <martin.hallsten@sofi.su.se>
To   statalist@hsphsun2.harvard.edu
Subject   st: strange labels in outreg2
Date   Tue, 03 May 2011 16:02:33 +0200

Dear statalist,

I use outreg2 frequently with the label option. I recently discovered
that the labels get messed up when one combines estimates from the logit and ologit (with different outcomes) - maybe this generalises to other combinations as well.

I can't remember this behaviour, and I wonder whether someone has a clue what produces it. It does not show up when one creates separate tables.

Here's how the table looks like (what bothers me is the "hiprice:weight" etc. labels int the SINGLE equation)


 			(1)	(2)
			m1	m2
EQUATION	VARIABLES	LABELS	hiprice	priceorder
				
priceorder	weight	Weight (lbs.)		0.00133
				(0.000880)
	length	Length (in.)		0.00142
				(0.0295)
SINGLE	hiprice:weight		0.00138	
			(0.00104)	
	hiprice:length		-0.00714	
			(0.0359)	
	hiprice:Constant		-3.765	
			(4.070)	
cut1	Constant	Constant		3.570
				(3.242)
cut2	Constant	Constant		5.308
				(3.277)
				
	Observations		74	74
	Standard errors in parentheses			
	*** p<0.01, ** p<0.05, * p<0.1			


and this is the code that produced it:


. clear
. sysuse auto

. recode price (3000/6000 =0)               (6000/max=1), gen(hiprice)
. recode price (3000/4500 =0) (4500/6000=1) (6000/max=2), gen(priceorder)

. logit  hiprice  weight length
. est store m1
. ologit priceorder  weight length
. est store m2

. outreg2 [m1 m2] using "table", replace label /* appears with strange labels */
. outreg2 [m1]    using "table_1", replace label /* looks ok */
. outreg2 [m2]    using "table_2", replace label /* looks ok */


Does anyone have a clue?

All the best

Martin

***********

. which outreg2
*! outreg2 2.2.4 12apr2010 by roywada@hotmail.com
*! based on outreg 3.0.6/4.0.0 by john_gallup@alum.swarthmore.edu
. about
Stata/SE 11.2 for Windows (32-bit)
Born 30 Mar 2011
Copyright (C) 2009 StataCorp LP



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