Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

Re: st: tabulating with weights

From   Nick Cox <>
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 <> 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:

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