Square table of counts as an array of rows, or the first of two paired samples of category codes.
Optionaly: readonly (string | number)[] | McnemarTestOptions
Second paired sample of category codes, when x is a sample. May be omitted (and the options passed in
its place) when x is a table.
See McnemarTestOptions.
McNemar's chi-squared test for symmetry of rows and columns in a square table of counts. Equivalent to R's
mcnemar.test(). Takes a matrix, or two factors given as paired category codes.