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, is already up and running.

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

Re: st: Spss's aggregate vs stata's collapse.

From   Ulrich Kohler <>
Subject   Re: st: Spss's aggregate vs stata's collapse.
Date   Wed, 13 Apr 2011 15:19:56 +0200

Am Mittwoch, den 13.04.2011, 12:13 +0100 schrieb Brendan Halpin:
> On Wed, Apr 13 2011, Amadou DIALLO wrote:
> > Brendan, Uli,
> > Thanks for answers. Yes, it has to do with weights. Removing it yields
> > same results. Apparently SPSS rounds non-integer weight to the nearest
> > integer (the total weighted frequency, not individual weights (sic!):
> >
> SPSS is doing the wrong thing here, then. 
> > I've tried Brendan's solution but this is not working. So far, I can't
> > duplicate results and am stuck. Will continue checking.
> If you really need to duplicate the results, you need to replicate
> SPSS's "error". It may be enough to round the weight yourself. 

I know that this is not a SPSS list, however I'm still puzzled about
what "rounding to the nearest integer" here really means. If a sampling
weight has been rescaled such that the sum of weights is equal to the
number of observations, there will be quite a number of weights below
0.5. Are they "rounded" to 0 then, meaning to drop them from the
analysis? Or is zero not an integer value? Or do we use, the geometric
mean or  harmonic mean between two subsequent numbers as the threshold
for rounding, or what. 

SPSS = Some petty Statistical Software?


*   For searches and help try:

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