threshold: Compute E-value for single value of risk ratio

Description Usage Arguments Examples

View source: R/EValue.R

Description

Computes E-value for a single value of the risk ratio. Users should typically call the relevant evalues.XX() function rather than this internal function.

Usage

1
threshold(x, true = 1)

Arguments

x

The risk ratio

true

The true RR to which to shift the observed point estimate. Typically set to 1 to consider a null true effect.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
## Example 1
## Hammond and Holl (1958 JAMA) Data
## Two by Two Table
#          Lung Cancer    No Lung Cancer
# Smoker    397            78557
# Nonsmoker 51             108778

# first get RR and CI bounds
twoXtwoRR(397, 78557, 51, 108778)

# then compute E-values
evalues.RR(10.729780, 8.017457, 14.359688)

EValue documentation built on Oct. 28, 2021, 9:10 a.m.