Description Usage Arguments Details Value References See Also Examples
View source: R/802.Association-measures-RR.R
This function calculates Risk Ratio and has 6 methods implemented leveraging pairwiseCI and metafor packags; Further inverse sinh base and adjusted are made available.
1 | Association.Measures.RR(ai, bi, ci, di, alp, c1, c2, c3, c4)
|
ai |
- Numeric value representing True Positives |
bi |
- Numeric value representing False Positives |
ci |
- Numeric value representing False Negatives |
di |
- Numeric value representing True Negatives |
alp |
- Numeric value representing required significance level |
c1 |
- Numeric value representing adjustment factor for inverse Sinh adjusted |
c2 |
- Numeric value representing adjustment factor for inverse Sinh adjusted |
c3 |
- Numeric value representing adjustment factor for inverse Sinh adjusted |
c4 |
- Numeric value representing adjustment factor for inverse Sinh adjusted |
Two methods from pairwiseCI package and two methods from metafor package is implemented along with inverese Sinh and inverse Sinh adjusted with consistant output view. Methods implemented are Woolf, Gart, MI_NU, MOVER, Inverse Sinh and Inverse Sinh Adjusted.
A dataframe with
Method |
Six methods are implemented - Woolf, Gart, MI_NU, MOVER, ISH and ISH.Adjusted |
Estimate |
The estimated value |
Lower.Limit |
The lower limit |
Upper.Limit |
The upper limit |
[1] Fagerland, M. W., & Newcombe, R. G. (2013). Confidence intervals for odds ratio and relative risk based on the inverse hyperbolic sine transformation. Statistics in medicine, 32(16), 2823-2836. [2] Upton, G. J. (2016). Categorical Data Analysis by Example. John Wiley & Sons.
Prop.ratio
provides Score, MNScore, MOVER and GNC. This function call pairwiseCI functions.
escalc
provides comprenhisive functionality from which RR alone is used in this function
Other Association Measures methods: Association.Measures.OR
,
Association.Measures.RD
1 2 3 4 | ## Example taken from Fagerland and Newcombe [reference 1]
ai=7; bi=11; ci=1; di=17; alp=0.05
c1=0; c2=0.2; c3=0; c4=0.8
suppressWarnings(Association.Measures.RR(ai,bi,ci,di,alp, c1, c2, c3, c4))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.