confounding: Unmeasured confounding

Description Usage Arguments Value Examples

View source: R/biases.R

Description

A type of bias. Declares that unmeasured confounding will be a component of interest in the the sensitivity analysis. Generally used within other functions; its output is returned invisibly.

Usage

1

Arguments

...

Other arguments. Not currently used for this function.

message

Logical. If TRUE, returns warnings and messages immediately. Defaults to FALSE because it is generally used within the calculate_evalue() or calculate_bound() functions, which will print the same messages/warnings.

Value

Invisibly returns a list with components n (2, the degree of the polynomial in the numerator), d (1, the degree of the polynomial in the denominator), m ("RR_UY", "RR_AU", the parameters in the bias factor), mess (any messages/warnings that should be printed for the user), and bias ("confounding").

Examples

1
2
3
4
5
6
confounding()
output <- confounding()
output

# Calculate an E-value for unmeasured confounding
calculate_evalue(RRobs = 4, biases = list(confounding()))

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