woolf_test function

Woolf Test

Woolf Test

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

woolf_test(x)

Arguments

  • x: A 2x2xk2 x 2 x k table.

Returns

A list of class "htest" containing the following components: - statistic: the chi-squared test statistic.

  • parameter: degrees of freedom of the approximate chi-squared distribution of the test statistic.

  • p.value: pp-value for the test.

  • method: a character string indicating the type of test performed.

  • data.name: a character string giving the name(s) of the data.

  • observed: the observed counts.

  • expected: the expected counts under the null hypothesis.

See Also

mantelhaen.test

References

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

Examples

data("CoalMiners") woolf_test(CoalMiners)
  • Maintainer: David Meyer
  • License: GPL-2
  • Last published: 2024-09-16

Useful links