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]

Re: st: -estout- value labels


From   Ricardo Ovaldia <ovaldia@yahoo.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: -estout- value labels
Date   Fri, 20 Apr 2012 12:54:06 -0700 (PDT)

Thank you. Is not hard. Just tedious when you have a lot of models and each with several indicator variables and categorical variables. 

Ricardo Ovaldia, MS
Statistician 
Oklahoma City, OK


--- On Fri, 4/20/12, Eric Booth <eric.a.booth@gmail.com> wrote:

> From: Eric Booth <eric.a.booth@gmail.com>
> Subject: Re: st: -estout- value labels
> To: statalist@hsphsun2.harvard.edu
> Date: Friday, April 20, 2012, 2:45 PM
> <>
> 
> No. 
>   Using the xi prefix just changes the background
> labels used from something like "2.rep78" to "_Irep78_2" -
> that seems to me to be the same level of ease/difficulty.
> 
> - Eric
> 
> __
> Eric A. Booth
> Public Policy Research Institute 
> Texas A&M University
> ebooth@ppri.tamu.edu
> +979.845.6754
> 
> 
> On Apr 20, 2012, at 2:35 PM, Ricardo Ovaldia wrote:
> 
> > Thank you Eric. Will the task be any easier if I use
> -xi- instead of factor variables?
> > 
> > Ricardo
> > 
> > Ricardo Ovaldia, MS
> > Statistician 
> > Oklahoma City, OK
> > 
> > 
> > --- On Fri, 4/20/12, Eric Booth <eric.a.booth@gmail.com>
> wrote:
> > 
> >> From: Eric Booth <eric.a.booth@gmail.com>
> >> Subject: Re: st: -estout- value labels
> >> To: statalist@hsphsun2.harvard.edu
> >> Date: Friday, April 20, 2012, 12:53 PM
> >> <>
> >> 
> >> 
> >> 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/
> >> 
> > 
> > *
> > *   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/
> 

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