Skip to main content
QUICK REVIEW

[Paper Review] ivmodel: An R Package for Inference and Sensitivity Analysis of Instrumental Variables Models with One Endogenous Variable

Hyunseung Kang, Yang Jiang|arXiv (Cornell University)|Feb 19, 2020
Advanced Causal Inference TechniquesMathematics56 references6 citations
TL;DR

The paper introduces the ivmodel R package for comprehensive instrumental variables (IV) analysis with one endogenous variable, offering robust inference via k-class estimators, weak instrument-robust confidence intervals (Anderson-Rubin and conditional likelihood ratio), power calculations, and sensitivity analysis for violations of IV assumptions. It demonstrates these methods on Card's (1995) education-earnings dataset, showing that the causal effect of education on earnings is sensitive to unmeasured confounding.

ABSTRACT

We present a comprehensive R software ivmodel for analyzing instrumental variables with one endogenous variable. The package implements a general class of estimators called k- class estimators and two confidence intervals that are fully robust to weak instruments. The package also provides power formulas for various test statistics in instrumental variables. Finally, the package contains methods for sensitivity analysis to examine the sensitivity of the inference to instrumental variables assumptions. We demonstrate the software on the data set from Card (1995), looking at the causal effect of levels of education on log earnings where the instrument is proximity to a four-year college.

Motivation & Objective

  • To address the lack of unified, modern IV software in R that supports robust inference under weak instruments and sensitivity analysis for violated IV assumptions.
  • To implement k-class estimators for consistent estimation of causal effects in IV models with one endogenous variable.
  • To provide confidence intervals fully robust to weak instruments, specifically the Anderson-Rubin and conditional likelihood ratio intervals.
  • To enable power calculations for designing future IV studies under various test statistics and effect sizes.
  • To offer sensitivity analysis tools to assess the robustness of IV inferences to violations of exogeneity and exclusion restrictions.

Proposed method

  • The package implements a general class of k-class estimators for estimating the causal effect β in a linear IV model with one endogenous variable.
  • It includes two confidence interval methods—Anderson-Rubin and conditional likelihood ratio—that are fully robust to weak instruments.
  • Sensitivity analysis is conducted using a parameter δ to quantify the strength of unmeasured confounding, with intervals computed over a specified range of δ.
  • Power calculations are derived for test statistics under the null and alternative hypotheses, enabling sample size planning.
  • The framework allows for covariate adjustment and handles both natural experiments and randomized encouragement designs.
  • The package integrates these components into a single, user-friendly R interface for end-to-end IV analysis.

Experimental results

Research questions

  • RQ1How can we perform robust inference in instrumental variables models when instruments are weak?
  • RQ2What is the impact of unmeasured confounding on the validity of IV estimates, and how can we quantify this sensitivity?
  • RQ3What sample size is required to achieve adequate power in an IV study under a given effect size and instrument strength?
  • RQ4How do different confidence interval methods (e.g., Anderson-Rubin vs. Wald) perform under weak instruments?
  • RQ5Can a unified R package streamline comprehensive IV analysis, including estimation, inference, power, and sensitivity analysis?

Key findings

  • The Anderson-Rubin confidence interval for the causal effect of education on earnings in Card's (1995) dataset is [−0.054, 0.535], with a p-value of 0.165 under sensitivity analysis for δ ∈ [−0.07, 0.07].
  • When sensitivity analysis accounts for an unmeasured confounder similar to the variable 'south', the null hypothesis of no causal effect cannot be rejected at conventional levels.
  • The power to detect a true effect of β* = 0.25 under δ ∈ [−0.07, 0.07] is only 22.7%, indicating low statistical power in the presence of potential unmeasured confounding.
  • To achieve 80% power to detect β* = 0.25 under the same sensitivity range, a sample size of at least 23,230 is required.
  • The sensitivity interval from a model excluding 'south' closely matches the confidence interval from the full model, validating the robustness of the sensitivity analysis approach.
  • The ivmodel package enables a unified workflow for IV analysis, integrating estimation, robust inference, power analysis, and sensitivity assessment in a single R package.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.