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   Abu Camara <[email protected]>
To   [email protected]
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 <[email protected]> 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 <[email protected]> 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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index