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: tabulating with weights


From   Nick Cox <[email protected]>
To   [email protected]
Subject   Re: st: tabulating with weights
Date   Mon, 26 Sep 2011 15:22:42 +0100

"Only one comma is legal": Not correct. You can have more than one
comma. I agree, as just posted, that "at most one comma" is a good
style rule, but that is a different question and a matter of
judgement.

. sysuse auto, clear
(1978 Automobile Data)

. su mpg , detail, if foreign

                        Mileage (mpg)
-------------------------------------------------------------
      Percentiles      Smallest
 1%           14             14
 5%           17             17
10%           17             17       Obs                  22
25%           21             18       Sum of Wgt.          22

50%         24.5                      Mean           24.77273
                        Largest       Std. Dev.      6.611187
75%           28             31
90%           35             35       Variance       43.70779
95%           35             35       Skewness        .657329
99%           41             41       Kurtosis        3.10734




On Mon, Sep 26, 2011 at 3:19 PM, Alberto R Osella
<[email protected]> wrote:
> I don't know  all the command but the if option must be place before the
> comma and only one comma is legal.
>
> Alberto R. Osella, MD, PhD
> Laboratorio di Epidemiologia e Biostatistica
> IRCCS Saverio de Bellis
> Via Turi, 27
> 70013 Castellana Grotte (BA)
> Italia
> Tel:    +39 0804994655
> Fax:    +39 0804994650
> e-mail: [email protected]
>
>
> Il 26/09/2011 16:01, Abu Camara ha scritto:
>>
>> Dear Statalist,
>>
>> I am running the following command:
>>
>> table  country  year, c(mean inflation) format(%9.2f), [aweight=
>> gdp_ppp_wold], if year>2005
>>
>>  but i keep getting the error :-   "option if not allowed"
>>
>> what is wrong? Any help would be appreciated.

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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