Description Usage Arguments Value References See Also Examples
Performs a test of the null that the risk ratio between two groups in a 2 x 2 table is 1.
1 | risk.ratio.test(data, conf.level = 0.95, Wald = TRUE)
|
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. |
A list with class "htest"
containing the following
components:
The chi-square test statistic.
The degrees of freedom of the approximate chi-squared distribution of the test statistic.
The p-value of the test.
The unconditional maximum likelihood estimate of the risk ratio.
The null risk ratio, which is currently set to 1.
A character string describing the alternative hypothesis. Currently only "two.sided".
A character string indicating the method employed.
A character string giving the name of the data.
Newman (2001), pages 143-144.
riskratio
in the epitools package.
1 2 3 | ## Example 6.1
risk.ratio.test(breast)
risk.ratio.test(breast, Wald = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.