Skip Navigation
*To search for student contact information, login to FlashLine and choose "My Campus" tab.

Search by campus:

SPSS Weighting Cases Screenshot Tutorial

 

Cases are weighted when the sample sizes for a particular variable (e.g. gender) are disporportionate to the population.  For instance, if we have a sample that includes 46% females and 54% males but the population from which that sample was drawn contains 30% females and 70% males, we might opt to weight our data to adust the distortion in the sample.  We would begin by calculating the weighting factor.  This is done by determining the proportion of the respective group in the population divided  by the proportion of that group in the sample.   

Weighting factor = % of population / % of sample  

In our above example:

  • Weighting factor for male = 0.70 / 0.54
  • Weighting factor for male = 1.30
  • Weighting Factor for female = 0.30 / 0.46
  • Weighting Factor for female = 0.65  

Once we have determined the Weighting factor, a new variable can be created.  This is done most easily by writing a simple script.

SPSS_18.0_Weighting_2

 Select File -- New -- Script.

 SPSS_18.0_Weighting_3

 Type a similar script as the one you see above. 

Click Run -- All.

SPSS_18.0_Weighting_4

A new column is created in your data sheet with the appropriate weights. 

SPSS_18.0_Weighting_5

 Click Data -- Weight Cases.

SPSS_18.0_Weighting_7

The above window will pop-up.  Click "Weight cases by" and choose the "weight" variable you just created.

SPSS_18.0_Weighting_8

Click the arrow to move the "weight" variable over.  Click O.K.

Your cases are now weighted.

 

 

Weighting Cases Script

IF gender=0 weight=1.30.
IF gender=1 weight=0.65.
EXECUTE.

DATASET ACTIVATE DataSet1.
WEIGHT BY weight.

For additional questions or assistance, contact Tina Ughrin.

Research Software Tutorial Survey

1. This tutorial was helpful. This field is required

2. Suggestions for changes or additions to this tutorial.

3. How did you find out about this webpage?