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]
Re: st: Format labels in table command
From
Nick Cox <[email protected]>
To
"[email protected]" <[email protected]>
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
[email protected]
On 29 March 2014 22:36, J. J. W. <[email protected]> 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/