Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Nick Cox <njcoxstata@gmail.com> |
To | "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Format labels in table command |
Date | Sun, 30 Mar 2014 12:38:04 +0100 |
In Stata a format is a display format applying to variables and scalars. But we know what you mean. One of many ways is . sysuse auto (1978 Automobile Data) . egen count = count(mpg) , by(foreign) . label var count "Number of cars" . tabdisp foreign, c(count) -------------------------- Car type | Number of cars ----------+--------------- Domestic | 52 Foreign | 22 -------------------------- . Nick njcoxstata@gmail.com On 29 March 2014 22:36, J. J. W. <bsc.j.j.w@gmail.com> wrote: > Dear all, > > suppose I have the following command: > > table year, c(count length) > > How can I change the label of the count length column to: "Number of people"? > > Thank you for your response! > > Yours sincerely, > > Jun Jie > * > * 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/ * * 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/