Learn R Programming

vcd (version 0.1-3.5)

woolf.test: Woolf test

Description

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

Usage

woolf.test(x)

Arguments

x
A 2x2xk-table.

Value

  • A list with class `"htest"' containing the following components:
  • statisticthe value the chi-squared test statistic.
  • parameterthe degrees of freedom of the approximate chi-squared distribution of the test statistic.
  • p.valuethe 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