statable Statistics for study and research

Case weight (frequency weight and survey weight)

In brief

A case weight is a column of numbers that says how strongly each row counts. It applies to all analyses of a project. It is set on the "Data" page (button "Case weight"); afterwards it appears in the header next to the project name, under every result at "Calculated" and in the report. No chip in the header means the project is unweighted.

Two kinds

A third kind, the analytic weight (aweight) for weighted least squares, is not offered by Statable. Entering it as a frequency gives wrong standard errors.

What Statable does with it

Why two kinds

Treating a survey weight as a frequency gives standard errors that depend on the size of the weights. Example: eight rows with the same values, the weights taken times 0.25, times 1 and times 10. The mean stays 4.33; the standard error by the frequency formula becomes 0.784, 0.347 and 0.106. The same data, three different "results". That is why Statable always asks for the kind and computes tests with a survey weight only design-based.

Design effect and SPSS

Statable computes the design effect without finite population correction (as R survey with deff = "replace"). SPSS corrects for the finite population and shows somewhat more (example apistrat: 1.210 versus SPSS 1.250).

Calculating weights from marginal distributions

In the "Case weight" dialog, besides "Choose an existing column", there is the route "Calculate weights (raking)": from known distributions of the population (for example gender and age group) Statable calculates a new column of survey weights. The question "drawn individually" follows. Details and pitfalls are in the article "Calculating weights (raking, marginal distributions)".

Case weight from an SPSS file or from a command

If an .sav file already carries an active case weight, or "WEIGHT BY …" is run in the commands, Statable asks: "What does … mean?" The kind is not stored in the .sav file, only the name of the column. No page calculates until it is answered. "Switch the case weight off" runs "WEIGHT OFF."

What is checked when setting it

Aggregating

When aggregating, "Cases (weighted)" counts the sum of the weights per group and "Rows (unweighted)" counts the rows. Mean, sum, standard deviation and median are weighted. The new project with one row per group does not keep the case weight.

For specialists

PSPP WEIGHT BY: a whole-number weight w gives the same output as if the case were there w times; negative and missing weights count as 0; decimal weights are not rounded (N = 7.90 is possible). With a frequency weight Statable calculates quartiles like PSPP and the distribution card (type 6, ALGORITHM=COMPATIBLE); with survey weights it uses weights scaled to the number of rows and the HAVERAGE method of PSPP EXAMINE, so that they do not depend on the size of the weights. The variance has the denominator Σw − 1 and is only a description for survey weights. Effective sample size: (Σw)² / Σw² (Kish), design effect n / n_eff. With a sampling design, Taylor linearisation and the Rao-Scott test would be the right way (R survey); that is not part of Statable.

Sources

Lumley, T. (2010). Complex Surveys: A Guide to Analysis Using R. Wiley. Kish, L. (1965). Survey Sampling. Wiley. Kish, L. (1992). Weighting for unequal Pi. Journal of Official Statistics, 8(2), 183-200. IBM SPSS Statistics, WEIGHT command and the Complex Samples module (documentation). GNU PSPP 2.1.3, manual, section WEIGHT.

Related

Open in Statable