Exercise 1
Use the file donations2.sav.
Construct a new variable “relicat” with categories: (1) no religion (2) catholic and
(3) protestant (reformed + rereformed). All other values have to be left out of
the analysis.
RECODE religion (1=1) (2=2) (3=3) (4=3) (SYSMIS=SYSMIS) (ELSE=SYSMIS)
INTO religioncat.
EXECUTE.
Construct a categorical variable “doncat” based on the continuous variable
“donations” with three categories such that each category contains about the
same amount of respondents. Construct a contingency table of “relicat” against
“doncat”.
RECODE donation (SYSMIS=SYSMIS) (Lowest thru 0.09=1) (0.09 thru 0.9=2)
(0.9 thru Highest=3)
(ELSE=SYSMIS) INTO doncat1.
EXECUTE.
CROSSTABS
/TABLES=doncat1 BY religioncat
/FORMAT=AVALUE TABLES
/STATISTICS=CHISQ GAMMA BTAU
/CELLS=COUNT
/COUNT ROUND CELL.
(a) Resulting table:
doncat1 * religioncat Crosstabulation
Count
religioncat
none catholic protestant Total
doncat1 low 106 24 24 154
middle 79 51 38 168
high 37 43 92 172
Total 222 118 154 494
(a) Is there an association in this table?
Association: yes/no, because:
Ja er is in deze tabel een relatie. De Chi-Square is 91.63 met een p-waarde
van < 0.001