woolf_test.RdTest for homogeneity on \(2 \times 2 \times k\) tables over strata (i.e., whether the log odds ratios are the same in all strata).
woolf_test(x)A list of class "htest" containing the following
components:
the chi-squared test statistic.
degrees of freedom of the approximate chi-squared distribution of the test statistic.
\(p\)-value for the test.
a character string indicating the type of test performed.
a character string giving the name(s) of the data.
the observed counts.
the expected counts under the null hypothesis.
Woolf, B. 1955. On estimating the relation between blood group and disease. Ann. Human Genet. (London) 19, 251-253.
data("CoalMiners")
woolf_test(CoalMiners)
#>
#> Woolf-test on Homogeneity of Odds Ratios (no 3-Way assoc.)
#>
#> data: CoalMiners
#> X-squared = 26.203, df = 8, p-value = 0.0009694
#>