Helper functions to implement various tests on the difference between two proportions.
Arguments
- tbl
(
matrix
)
matrix with two groups in rows and the binary response (TRUE
/FALSE
) in columns.- ary
(
array
, 3 dimensions)
array with two groups in rows, the binary response (TRUE
/FALSE
) in columns, and the strata in the third dimension.
Functions
prop_chisq()
: performs Chi-Squared test. Internally callsstats::prop.test()
.prop_cmh()
: performs stratified Cochran-Mantel-Haenszel test. Internally callsstats::mantelhaen.test()
. Note that strata with less than two observations are automatically discarded.prop_schouten()
: performs the Chi-Squared test with Schouten correction.prop_fisher()
: performs the Fisher's exact test. Internally callsstats::fisher.test()
.
See also
prop_diff_test()
for implementation of these helper functions.
Schouten correction is based upon Schouten et al. (1980) .