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]

st: Variable labels with proportion


From   Geoff Dougherty <[email protected]>
To   [email protected]
Subject   st: Variable labels with proportion
Date   Thu, 21 Nov 2013 15:01:05 -0600

Hi, all. I am using svy: proportion to calculate percentages for a long list of variables. I am wondering if there's a way to have the output display the variable labels rather than variable names. I saw an indication in an old listserv post that this may not be possible, so if anyone has an idea for a workaround, that would be great. 

Also, I'm wrestling with creating a value label that will display categorical variables as binary: 

#delimit ;
 label define tobinary
   1    "Yes"
   2    "No"
   7    "No"
   8    "No"
   9    "No"
   ; 
 
 However, values 2-9 are showing up as individual levels in the output. Any idea how to remedy this without recoding a long list of variables?  

Thanks,
Geoff Dougherty
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/faqs/resources/statalist-faq/
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index