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 at the end of May, 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   Abu Camara <abucamara@gmail.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: tabulating with weights
Date   Mon, 26 Sep 2011 17:26:53 +0300

Nick, Alberto R Osella,

Thanks to all of you. Both suggestions work very well.
Abu


On 26 September 2011 17:18, Nick Cox <njcoxstata@gmail.com> wrote:
> Your syntax is wrong. The comma toggles between options and
> non-options. -if- is not an option. You can use more than one comma,
> but it leads to puzzles like this. My strong advice is to use no more
> than one comma.
>
> table  country  year [aweight= gdp_ppp_wold] if year>2005, c(mean
> inflation) format(%9.2f)
>
> On Mon, Sep 26, 2011 at 3:01 PM, Abu Camara <abucamara@gmail.com> wrote:
>
>> 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/
>



-- 
Best Wishes,

Abu Camara

*
*   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