statable Statistics for study and research

Calculating weights (raking, marginal distributions)

In brief

A sample often has different shares than the population (too many women, too many young people). If you know the distribution of the population for a few variables (for example from a census), raking calculates weights that adjust the sample to these margins. The route is called "Calculate weights (raking)" and is in the "Case weight" dialog (page "Data"). The result is a new column; afterwards you answer the question "Were the people drawn individually?", and the column counts as a survey weight.

How it works

  1. Choose variables: 1 to 5 columns with 2 to 50 groups (for example gender, age group).
  2. Type in the distribution of the population per variable, as numbers or as shares (nothing is preset; the button "Insert the distribution of the sample" is only a starting point to change). Each margin is divided by its own sum, rounding errors do no harm.
  3. Optionally choose a starting weight from a column (for example a design weight). A case weight that is already set is not used automatically.
  4. "Calculate weights". The iterations, the largest deviation of a margin, the effective sample size after Kish, the design effect, the smallest and largest weight and a ready-made sentence for the report appear.
  5. Answer the question "drawn individually" and choose "Create the column and set it as the survey weight".

How Statable calculates

Where Statable is stricter than survey::rake

Pitfalls

The weights were adjusted to the marginal distributions of school type and schoolwide program by iterative proportional fitting (raking) (10 iterations; the margins match to within less than 0.0001 people). The effective sample size (Kish) is 199.8 of 200 cases.

Related

Open in Statable