vcd (version 0.9-0)

woolf_test: Woolf Test

Description

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

Usage

woolf_test(x)

Arguments

x
A $2 \times 2 \times k$ table.

Value

  • A list of class "htest" containing the following components:
  • statisticthe chi-squared test statistic.
  • parameterdegrees of freedom of the approximate chi-squared distribution of the test statistic.
  • p.value$p$-value for the test.
  • methoda character string indicating the type of test performed.
  • data.namea character string giving the name(s) of the data.
  • observedthe observed counts.
  • expectedthe expected counts under the null hypothesis.

See Also

mantelhaen.test

Examples

Run this code
data(CoalMiners)
woolf_test(CoalMiners)

Run the code above in your browser using DataLab