data tea; input poured guess count @@; cards; 1 1 3 1 2 1 2 1 1 2 2 3 ; proc freq; weight count; tables poured*guess / exact; run; The SAS System 10:04 Monday, May 3, 1999 1 TABLE OF POURED BY GUESS POURED GUESS Frequency| Percent | Row Pct | Col Pct | 1| 2| Total ---------+--------+--------+ 1 | 3 | 1 | 4 | 37.50 | 12.50 | 50.00 | 75.00 | 25.00 | | 75.00 | 25.00 | ---------+--------+--------+ 2 | 1 | 3 | 4 | 12.50 | 37.50 | 50.00 | 25.00 | 75.00 | | 25.00 | 75.00 | ---------+--------+--------+ Total 4 4 8 50.00 50.00 100.00 STATISTICS FOR TABLE OF POURED BY GUESS Statistic DF Value Prob ------------------------------------------------------ Chi-Square 1 2.000 0.157 Likelihood Ratio Chi-Square 1 2.093 0.148 Continuity Adj. Chi-Square 1 0.500 0.480 Mantel-Haenszel Chi-Square 1 1.750 0.186 Fisher's Exact Test (Left) 0.986 (Right) 0.243 (2-Tail) 0.486 Phi Coefficient 0.500 Contingency Coefficient 0.447 Cramer's V 0.500 Sample Size = 8 WARNING: 100% of the cells have expected counts less than 5. Chi-Square may not be a valid test. ------------------------------------- MTB > print c1-c2 Data Display Row C1 C2 1 3 1 2 1 3 MTB > ChiSquare C1 C2. Chi-Square Test Expected counts are printed below observed counts C1 C2 Total 1 3 1 4 2.00 2.00 2 1 3 4 2.00 2.00 Total 4 4 8 Chi-Sq = 0.500 + 0.500 + 0.500 + 0.500 = 2.000 DF = 1, P-Value = 0.157 4 cells with expected counts less than 5.0