**
;
Purpose: Chi-square test
(one-sample/two-sample and r ×
K ;
sample
;
;
Tests whether
there is an association between
two ;
category
variables (test of independence)
or whether;
distribution of
proportions in the k-
populations ;
with respect to
the categorical response
variable ;
are different
(test of
homogeneity) ;
;
Created: 16 April
1995
;
;
Input file: NONE (Data
entered in
programme) ;
Output
file: NONE
;
Notes: Data is entered
after the cards
statement. **;
*****;
data chi;
input row col celln @@;
Appendix 361