Statalist


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

Re: st: Factor variables and outreg/outreg2


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Factor variables and outreg/outreg2
Date   Wed, 27 Jan 2010 08:55:29 -0800 (PST)

--- On Wed, 27/1/10, Joshua Gottlieb wrote:
> Both -outreg- and -outreg2- return error 101 when I specify
> a varlist that includes factor variables or factor
> interactions.  (Obviously this is in Stata 11.)  Do you know
> if there's any workaround so that I can choose specific
> factor variables and interactions to include in my
> outreg2 output?

I can't reproduce that error message (see the example below).
You can always try -estout- (type in Stata -ssc install estout-,
and see: <http://repec.org/bocode/e/estout/>). In the example
below, both work with factor variables and interactions.

*-------------- begin example ---------------------
sysuse auto, clear
tempname myfile
regress mpg i.foreign##c.weight headroom
outreg2 using `myfile', see
eststo : regress mpg i.foreign##c.weight headroom
esttab
*---------------- end example ---------------------
( For more on how to use examples I sent to statalist see:
 http://www.maartenbuis.nl/stata/exampleFAQ.html )

Hope this helps,
Maarten

--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany

http://www.maartenbuis.nl
--------------------------


      

*
*   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–2020 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index