Myers, James, Shih-Feng Huang, and Jhishen Tsay. 2007. “Exact Conditional Inference for Two-Way Randomized Bernoulli Experiments”.
Journal of Statistical Software, Code Snippets
21 (1):1-7. https://doi.org/10.18637/jss.v021.c01.