Skip to contents

Closed-form Cinelli-Hazlett robustness-value implementation in base R. For the full sensemakr treatment (benchmark plots, adjusted t-statistics, contour plots) on a fitted lm object, use morie_sensitivity_omitted_var_bias.

Usage

omitted_variable_bias(
  estimate,
  se,
  dof,
  r2_yd_x,
  partial_r2_treatment,
  q = 1,
  alpha = 0.05,
  benchmark_covariates = NULL
)

Arguments

estimate

Treatment coefficient.

se

SE of the estimate.

dof

Residual degrees of freedom.

r2_yd_x

Partial R^2 of treatment with outcome.

partial_r2_treatment

Same as r2_yd_x (for clarity).

q

Fraction of the estimate to be explained away. Default 1.

alpha

Significance level. Default 0.05.

benchmark_covariates

Named list mapping covariate name -> partial R^2.

Value

A morie_ovb named-list.