Functions for multinomial and two sample independent binomial
Note that because the X^{2} statistic is being compared to an estimate of the exact distribution, rather than to an approximate continuous model, the 'x2' function (below) does not use a continuity correction.
These instructions have to be entered before using the second set of code below.
