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 on April 23, and its replacement, statalist.org is already up and running.


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

Re: st: may not use noninteger frequency weights


From   Maarten buis <maartenbuis@yahoo.co.uk>
To   statalist@hsphsun2.harvard.edu
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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index