Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: RE: SImple question on "describe"


From   "David Harrison" <david.harrison@icnarc.org>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: RE: SImple question on "describe"
Date   Wed, 21 Jun 2006 09:09:15 +0100

Sorry, some of my code got a little mixed up there... Corrected version
below... 

prog tablevl
    version 8
    syntax varlist(min=1 max=3) [if] [in] [fw aw pw iw] [, *]
    tokenize `varlist'
    local i 0
    while !missing("``++i''") {
        local lab`i' : var lab ``i''
        label var ``i'' `"``i'': `lab`i''"'
    }
    cap nois table `varlist' `if' `in' [`weight' `exp'], `options'
    local rc _rc
    local i 0
    while !missing("``++i''") {
        label var ``i'' `"`lab`i''"'
    }
    if `rc' {
        exit `rc'
    }
end

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

*
*   For searches and help try:
*   http://www.stata.com/support/faqs/res/findit.html
*   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   |   What's new   |   Site index