A) Open IBM SPSS Statistics through Desktop or Start-menu.
Open the previously used data.
Select Analyze → Descriptive Statistics → Descriptives.
Select variables and click Options-button.
Select the following descriptives and click Continue .
Click OK, and you will see the following results :
Click Variable View.
Click Values-column on gender-variable and click ...-button.
Input a value, which you want to name, to the Value-field.
A name is set by inputting it to the Label-field (here: value 1 = a boy). Click Add-button.
Perform the same routine for the value 2, in which the label is a girl.
Click OK.
Select Analyze->Descriptive Statistics -> Crosstabs...
Set the variables into Row(s) and Column(s)).
Note! Cells...-button is used to calculate the expected frequencies and various row- and column-percentages.
Note! Statistics...-button is used to calculate various measures of association.
Click Cells...-button. Make the following selections and click Continue.
Click OK.
Thus, you will see the following results :
[ Note! By selecting File -> Print preview, it is possible to see the preview of printing output]
[ Note! The results of the output-window can be printed by selecting: File -> Print]
Chi Square is calculated through the Crosstabs-window of the previous task.
Click Statistics-button.
Select Chi-square and click Continue.
Click OK.
Thus, you will see the following results :
Close the output-window by clicking X.
Save the data: File->Save and close SPSS by choosing : File->Exit or by clicking X.
[ Note : Contingency table can be inputted directly (e.g the following table) :
x2\x1 | 1 | 2 |
1 | 10 | 3 |
2 | 9 | 10 |
The table is set as variables x1, x2 and as cell frequency freq (= weight, which is calculated : Data-> Weight Cases)
x1 | x2 | freq |
1 | 1 | 10 |
1 | 2 | 3 |
2 | 1 | 9 |
2 | 2 | 10 |
Perform a run for the contingency table and select the Chi square-test : Analyze-> Descriptive Statistics->Crosstabs.
Set the row- and column variables and click Statistics and select Chi-square. ]