the variables to condition on - either a vector, or a list of vectors
B
the number of Monte Carlo runs (defaults to 5000 if given NULL)
Value
Details
This is the reimplementation of Monte Carlo chi-square test to be sure
it works correctly. The Monte Carlo loop is implemented using Rcpp and uses
the R function r2dtable() to generate random contingency tables with
fixed marginals.