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


From   Eric Booth <[email protected]>
To   [email protected]
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
[email protected]
+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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index