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:18:27 +0100 
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/