h_prop_diff_test {tern} | R Documentation |
Helper functions to test proportion differences
Description
Helper functions to implement various tests on the difference between two proportions.
Usage
prop_chisq(tbl)
prop_cmh(ary)
prop_schouten(tbl)
prop_fisher(tbl)
Arguments
tbl |
( |
ary |
( |
Value
A p-value.
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).