DescTools (version 0.99.18)

WoolfTest: Woolf Test

Description

Test for homogeneity on $2 x 2 x k$ tables over strata (i.e., whether the log odds ratios are the same in all strata).

Usage

WoolfTest(x)

Arguments

x
a $2 x 2 x k$ table.

Value

A list of class "htest" containing the following components:

References

Woolf, B. 1955: On estimating the relation between blood group and disease. Ann. Human Genet. (London) 19, 251-253.

See Also

mantelhaen.test, BreslowDayTest

Examples

Run this code
migraine <- xtabs(freq ~ ., 
            cbind(expand.grid(treatment=c("active","placebo"), 
                               response=c("better","same"), 
                               gender=c("female","male")),
                  freq=c(16,5,11,20,12,7,16,19))
            )

WoolfTest(migraine)

Run the code above in your browser using DataCamp Workspace