Skip to contents

Modified Fisher exact test

The main user-facing test.

modified_fisher_exact_test()
The non-conservative, size-\(\alpha\) modified Fisher exact test

Building blocks

Internal steps of the algorithm, exported for advanced use.

construct_test_frame()
Construct testing frame and randomisation values
optimise_gamma0()
Find the optimal \(\gamma_0\)
local_size_modified()
Local size of the MFET
size_modified()
Actual size of the MFET for a given \(\gamma_0\)
power_modified()
Power of the MFET

Comparison tests

Size and power of the alternative tests, for benchmarking.

local_size_asymptotic()
Local size of Woolf's asymptotic test
power_asymptotic()
Power of Woolf's asymptotic test
local_size_probability()
Local size of the SAS Proc FREQ exact test
power_probability()
Power of the SAS Proc FREQ exact test
pvalue_probability()
P-value from the SAS Proc FREQ exact test
local_size_randomised()
Local size of the randomised (UMPU) Fisher exact test
power_randomised()
Power of the randomised (UMPU) Fisher exact test
power_conservative()
Power of the conservative Fisher exact test