cards; /
Data entered on next
line /
1 1 21 1 2 27 2 1 10 2 2
69
;
proc freq data=chi;
weight celln;
table row*col / nopercent
chisq;
title 'Chi square test for
gender (row var) and
understanding (col var)';
run;
Figure 5: Program for
Chi-square analysis
**;
** Filename: FISHER.JOB
;
;
Purpose: Fisher's exact
test
;
Tests whether
there is a difference in
proportions ;
between two
groups in a 2 × 2
table.
**;
Created: 16 April
1995
;
**
;
Input file: NONE (Data
entered in
program)
**;
Appendix 362