Association.Measures.RR: This function calculates Risk Ratio and has 6 methods...

Description Usage Arguments Details Value References See Also Examples

View source: R/802.Association-measures-RR.R

Description

This function calculates Risk Ratio and has 6 methods implemented leveraging pairwiseCI and metafor packags; Further inverse sinh base and adjusted are made available.

Usage

1
Association.Measures.RR(ai, bi, ci, di, alp, c1, c2, c3, c4)

Arguments

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

Details

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.

Value

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

References

[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.

See Also

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

Examples

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))

RajeswaranV/vcdPlus documentation built on May 27, 2019, 7:28 a.m.