R/Woolf_test_and_CI_stratified_2x2.R
Woolf_test_and_CI_stratified_2x2.Rd
The Woolf test and CI for a common odds ratio
(A Wald-type test and CI based on the inverse variance estimate)
Described in Chapter 10 "Stratified 2x2 Tables and Meta-Analysis"
Woolf_test_and_CI_stratified_2x2(n, alpha = 0.05)
An object of the contingencytables_result class,
basically a subclass of base::list()
. Use the utils::str()
function
to see the specific elements returned.
# Smoking and lung cancer (Doll and Hill, 1950)
Woolf_test_and_CI_stratified_2x2(doll_hill_1950)
#> The Woolf test: P = 0.00017, Z = 3.763
#> The Woolf CI: thetahatIV = 3.5563 (95% CI 1.8365 to 6.8866)
# Prophylactice use of Lidocaine in myocardial infarction (Hine et al., 1989)
Woolf_test_and_CI_stratified_2x2(hine_1989)
#> The Woolf test: P = 0.04613, Z = 1.994
#> The Woolf CI: thetahatIV = 1.7642 (95% CI 1.0098 to 3.0821)