Instrumental Variable Estimation with the R Package ivtools

Arvid Sjolander*, Torben Martinussen

*Corresponding author for this work

Research output: Contribution to journalJournal articleResearchpeer-review

36 Citations (Scopus)
470 Downloads (Pure)

Abstract

Instrumental variables is a popular method in epidemiology and related fields, to estimate causal effects in the presence of unmeasured confounding. Traditionally, instrumental variable analyses have been confined to linear models, in which the causal parameter of interest is typically estimated with two-stage least squares. Recently, the methodology has been extended in several directions, including two-stage estimation and so-called G-estimation in nonlinear (e. g. logistic and Cox proportional hazards) models. This paper presents a new R package, ivtools, which implements many of these new instrumental variable methods. We briefly review the theory of two-stage estimation and G-estimation, and illustrate the functionality of the ivtools package by analyzing publicly available data from a cohort study on Vitamin D and mortality.

Original languageEnglish
Article number20180024
JournalEpidemiologic Methods
Volume8
Issue number1
Number of pages20
ISSN2194-9263
DOIs
Publication statusPublished - 2019

Keywords

  • G-estimation
  • instrumental variables
  • mendelian randomization
  • statistical software
  • two-stage estimation

Cite this