* SAS (8.1 or higher) code for running extended Fisher test * on two binary factors, where N is the number of speakers * in each group, a, b, c, d are the "yes" counts of the cells * arranged as in the following table, and "F" and "G" are * the names of the factors. * * [+F] [-F] * [+G] a c * [-G] b d * * In the following, replace a, b, c, d, N by your actual values, * and F & G by your actual factor names (don't use quotation marks; * FG is the name of the interaction factor). data example; input F G FG Judge count @@; datalines; 1 1 1 1 a 1 -1 -1 1 b -1 1 -1 1 c -1 -1 1 1 d 1 1 1 0 N-a 1 -1 -1 0 N-b -1 1 -1 0 N-c -1 -1 1 0 N-d ; proc logistic exactonly data=example; freq count; model Judge=F G FG; exact F G FG; run;