CHI SQUARE
Column one is the midpoint of the brackets that you have
chosen. Column two is the name of the
groups. Column three is the number of
individuals within each bracket. Copy and
paste the following into the SAS Editor Untitled1 window, then copy and paste
your data into the yellow area from an Excel spreadsheet, and change the names
(if desired) of the data name, input name, and tables name (make sure the last
two match). Then you are ready for the running man!
data Soil;
infile cards;
input pH $ status $ count;
cards;
4.5
Common 4
4.5
Rare 6
5.5
Common 10
5.5
Rare 12
6.5
Common 6
6.5
Rare 7
7.5
Common 4
7.5
Rare 7
proc freq;
weight count;
tables pH * status / chisq;
run;