risk.ratio.test: Risk Ratio Test for single 2 x 2 table

Description Usage Arguments Value References See Also Examples

Description

Performs a test of the null that the risk ratio between two groups in a 2 x 2 table is 1.

Usage

1
risk.ratio.test(data, conf.level = 0.95, Wald = TRUE)

Arguments

data

a 2 x 2 matrix.

conf.level

confidence level of the returned confidence interval. Must be a single number between 0 and 1. Default is 0.95.

Wald

a logical indicating whether to use the Wald or Likelihood Ratio Test. Default is TRUE.

Value

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

statistic

The chi-square test statistic.

parameter

The degrees of freedom of the approximate chi-squared distribution of the test statistic.

p.value

The p-value of the test.

estimate

The unconditional maximum likelihood estimate of the risk ratio.

null.value

The null risk ratio, which is currently set to 1.

alternative

A character string describing the alternative hypothesis. Currently only "two.sided".

method

A character string indicating the method employed.

data.name

A character string giving the name of the data.

References

Newman (2001), pages 143-144.

See Also

riskratio in the epitools package.

Examples

1
2
3

clayford/bme documentation built on May 13, 2019, 7:37 p.m.