bias_plot: Plot bias factor as function of confounding relative risks

Description Usage Arguments Examples

View source: R/EValue.R

Description

Plots the bias factor required to explain away a provided relative risk.

Usage

1
bias_plot(RR, xmax)

Arguments

RR

The relative risk

xmax

Upper limit of x-axis.

Examples

1
2
# recreate the plot in VanderWeele and Ding (2017)
bias_plot(RR=3.9, xmax=20)

Example output



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