Learn R Programming

episensr (version 0.7.1)

mbias: Sensitivity analysis to correct for selection bias caused by M bias.

Description

Simple sensitivity analysis to correct for selection bias caused by M bias using estimates of the odds ratios relating the variables.

Usage

mbias(or, var)

Arguments

or
Vector defining the input bias parameters, in the following order:
  1. Odds ratio between A and the exposure E,
  2. Odds ratio between A and the collider C,
  3. Odds ratio between B and the collider C,
  4. Odds ratio between B and the outc
var
Vector defining variable names, in the following order:
  1. Outcome,
  2. Exposure,
  3. A,
  4. B,
  5. Collider.

Value

  • A list with elements:
  • mbias.parmsMaximum bias parameters.
  • adj.measuresSelection bias corrected measures.
  • bias.parmsInput bias parameters.

References

Greenland S. Quantifying biases in causal models: classical confounding vs. collider-stratification bias. Epidemiology 2003;14:300-6.

Examples

Run this code
mbias(or = c(2, 5.4, 2.5, 1.5, 1),
var = c("HIV", "Circumcision", "Muslim", "Low CD4", "Participation"))

Run the code above in your browser using DataLab