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: -estout- value labels


From   Eric Booth <eric.a.booth@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -estout- value labels
Date   Fri, 20 Apr 2012 12:53:16 -0500

<>


I assume the issue is with using factor variables in a model (-help help fvvarlist-) that you are exporting via -estout-?
Use the 'varlabels' option already built into -estout- (see -help estout-).  Also -estout- is from SSC.


Example:

*************!
clear*
sysuse auto, clear
eststo, title("M1"): quietly regress price rep78 mpg
eststo, title("M2"): quietly regress price i.rep78 mpg
**
estout * using "test.xls", ///
replace label  ///
varlabels(rep78 "rep78 test" mpg "mpg test label" 1b.rep78 "1st level" 2.rep78 "2nd level" 3.rep78 "3rd l" 4.rep78 "4th" 5.rep78 "5th level of rep78"   _cons Intercept)

**************!

- Eric

__
Eric A. Booth
Public Policy Research Institute 
Texas A&M University
ebooth@ppri.tamu.edu
+979.845.6754


On Apr 20, 2012, at 11:23 AM, Ricardo Ovaldia wrote:

> Hello,
> 
> Is there a way to display value labels for categorical variables using -estout-? I can do it wit -reformat- , but can not figure how to do it with -estout-.
> 
> Thank you,
> Ricardo
> 
> Ricardo Ovaldia, MS
> Statistician 
> Oklahoma City, OK
> *
> *   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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index