Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: tabulating with weights


From   Nick Cox <njcoxstata@gmail.com>
To   statalist@hsphsun2.harvard.edu
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
<arosella@irccsdebellis.it> 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: arosella@irccsdebellis.it
>
>
> 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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index