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: may not use noninteger frequency weights
From
Maarten buis <[email protected]>
To
[email protected]
Subject
Re: st: may not use noninteger frequency weights
Date
Mon, 23 Aug 2010 16:20:14 +0000 (GMT)
--- On Mon, 23/8/10, Kiss Sándor Csanád wrote:
> Why is it, that from the following 3 command, the first 2
> is ok, but the 3rd gives the error message in the subject?
>
> ta var1 var2
> ta var1 var2 [iw = var3]
> ta var2 [iw = var3], su(var2)
That is because -tabulate, summarize- does not allow iweights.
The only weights allowed are either aweights or fweights. You
can see that when you type -help tabulate_summarize-.
You are right, that Stata issued the wrong error message, it
should have told you:
iweight not allowed
r(101);
Hope this helps,
Maarten
--------------------------
Maarten L. Buis
Institut fuer Soziologie
Universitaet Tuebingen
Wilhelmstrasse 36
72074 Tuebingen
Germany
http://www.maartenbuis.nl
--------------------------
*
* 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/