calculate_evalue: Calculate a multiple-bias E-value

Description Usage Arguments Value Examples

View source: R/evalue.R

Description

Calculate an E-value for a specified set of biases.

Usage

1
calculate_evalue(RRobs, biases, message = TRUE)

Arguments

RRobs

A number. The value of the risk ratio that was observed but which is suspected to be biased.

biases

A list of biases to include in the calculation of the E-value. May include any or all of confounding(), selection(), and misclassification(), and any of the options described in the documentation for those functions.

message

Logical. Whether or not to print a message with the parameters the E-value refers to. Defaults to TRUE.

Value

Returns a multiple bias E-value describing the value that each of a number of parameters would have to have for RRobs to be completely explained by bias. A message is printed listing the parameters that the value refers to.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
# Calculate an E-value for unmeasured confounding
calculate_evalue(RRobs = 4, biases = confounding())

# Calculate an E-value for selection bias and misclassification
calculate_evalue(RRobs = 2.5,
         biases = list(selection("selected"), misclassification("outcome")))

# Calculate an E-value for all three available types of bias
calculate_evalue(RRobs = 1.4234,
         biases = list(selection("general", "S = U"),
                       misclassification("exposure", outcome_rare = TRUE,
                                                     exposure_rare = TRUE),
                       confounding()))

louisahsmith/simpleSens documentation built on March 19, 2020, 12:07 a.m.