R is the perfect language for creating a variety of chi-square tests, which are used to perform statistical analyses of counts of data. Here's how, with some sample code. A chi-square test (also ...
output out=chisqdat pchi lrchi n nmiss; title 'Chi-Square Tests for 3 by 5 Table of Eye and Hair Color'; run; proc print data=chisqdat noobs; title 'Chi-Square Statistics for Eye and Hair Color'; ...
uses rank scores to compute the Cochran-Mantel-Haenszel statistics suppresses the display of contingency tables for each stratum. Friedman's test is a nonparametric test for treatment differences in a ...