h_prop_diff_test {junco} | 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, alternative)
prop_cmh(ary, alternative)
prop_fisher(tbl, alternative)
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()
. -
prop_fisher()
: Performs the Fisher's exact test. Internally callsstats::fisher.test()
.
Note
strata with less than five observations will result in a warning and possibly incorrect results; strata with less than two observations are automatically discarded.
See Also
prop_diff_test()
for implementation of these helper functions.