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, 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 <>
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.


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

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

*   For searches and help try:

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