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]

Re: st: Format labels in table command


From   "J. J. W." <bsc.j.j.w@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Format labels in table command
Date   Wed, 2 Apr 2014 23:26:28 +0200

Dear Nick,

thank you for your response. Is it possible to do this without
generating a count variable?

Yours sincerely,

Jun Jie

2014-03-30 13:38 GMT+02:00 Nick Cox <njcoxstata@gmail.com>:
> 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/
*
*   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