MyNixOS website logo
Description

Doubly Robust Estimation of Local Average Treatment Effects.

Estimates the local average treatment effect (LATE) and the local average treatment effect on the treated (LATT) using observational data with a binary instrument, implementing the complete estimator suite of Sloczynski, Uysal, and Wooldridge: the doubly robust estimators of Sloczynski, Uysal, and Wooldridge (2022) <doi:10.48550/arXiv.2208.01300> -- inverse probability weighted regression adjustment (IPWRA), inverse probability weighting (IPW), augmented inverse probability weighting (AIPW), and regression adjustment (RA) -- and the Abadie-kappa weighting estimators of Sloczynski, Uysal, and Wooldridge (2025) <doi:10.1080/07350015.2024.2332763>. Supports linear, logistic, probit, Poisson, and fractional (fractional-logit and fractional-probit) outcome and treatment models, and instrument propensity scores estimated by maximum likelihood, covariate balancing (CBPS), or inverse probability tilting (IPT). Standard errors are computed jointly for all estimation stages by stacking the moment conditions of every model into a single M-estimation system; weak-instrument-robust Fieller confidence sets, cluster-aware bootstrap inference, design diagnostics, and a doubly robust Hausman-type test of unconfoundedness are included. Estimates and standard errors are validated against the authors' Stata commands 'drlate' (Statistical Software Components S459708) and 'kappalate' (S459257).

drlate

drlate provides doubly robust estimation of the local average treatment effect (LATE) and the local average treatment effect on the treated (LATT) from observational data with a binary instrument. It implements the complete estimator program of Słoczyński, Uysal, and Wooldridge in one package: the doubly robust IPWRA/IPW/AIPW/RA estimators of Słoczyński, Uysal & Wooldridge (2022) and the Abadie-kappa weighting estimators of Słoczyński, Uysal & Wooldridge (2025, JBES), behind a single three-formula interface. Standard errors for every estimator come from one jointly stacked M-estimation system whose sandwich variance accounts for all estimation stages, and the test suite verifies numerical equivalence of estimates and standard errors against fixtures generated by the authors' own Stata commands (drlate, SSC S459708, and kappalate, SSC S459257) across 38 scenarios. Around the estimators the package provides the workflow applied IV analysis needs: design diagnostics, weak-instrument-robust Fieller confidence sets, cluster-aware bootstrap inference, estimator comparison, and the 2022 paper's doubly robust Hausman test of unconfoundedness.

Installation

# install.packages("remotes")
remotes::install_github("kvenkita/drlate")

Example

library(drlate)
data(drlate_sim)

fit <- drlate(lwage ~ age + educ,    # outcome model
              nvstat ~ age + educ,   # treatment model
              rsncode ~ age + educ,  # instrument propensity score model
              data = drlate_sim)
summary(fit)
#> Local average treatment effect
#> Number of obs    : 2,000
#> Estimator        : IPWRA
#> Outcome model    : linear
#> Treatment model  : logit
#> Instrument model : logit (MLE)
#>
#>              Estimate Std. Error z value   Pr(>|z|) [95% conf. interval]
#> LATE: D on Y   0.4705    0.07915   5.944  2.786e-09     0.3153    0.6256
#> ATE: Z on Y    0.2845    0.05043   5.642  1.679e-08     0.1857    0.3834
#> ATE: Z on D    0.6048    0.01837  32.929 8.326e-238     0.5688    0.6408
#>
#> First stage (Z on D): z = 32.93 (z^2 ~ first-stage F = 1084)

Citation

If you use drlate in your research, please cite:

Venkitasubramanian, K. (2026). drlate: Doubly Robust Estimation of the Local Average Treatment Effect in R. R package version 0.3.0. https://github.com/kvenkita/drlate

and the methodological papers whose estimators you use:

Słoczyński, T., Uysal, S. D., & Wooldridge, J. M. (2022). Doubly Robust Estimation of Local Average Treatment Effects Using Inverse Probability Weighted Regression Adjustment. arXiv:2208.01300.

Słoczyński, T., Uysal, S. D., & Wooldridge, J. M. (2025). Abadie's Kappa and Weighting Estimators of the Local Average Treatment Effect. Journal of Business & Economic Statistics 43(1), 164–177.

The package descends from the authors' Stata commands:

Uysal, D., Słoczyński, T., & Wooldridge, J. M. (2026). DRLATE: Stata module to perform doubly robust estimation of the local average treatment effect (LATE) and the local average treatment effect on the treated (LATT). Statistical Software Components S459708, Boston College Department of Economics.

(citation("drlate") prints the entries with BibTeX.)

Features

EstimandsLATE, LATT
Estimators (method)IPWRA (default), IPW, AIPW, RA; Abadie-kappa weighting: kappa, kappa0, kappa10 (Słoczyński, Uysal & Wooldridge 2025, JBES)
Outcome / treatment modelslinear, logit, probit, Poisson; fractional-logit and fractional-probit for outcomes in [0, 1]
Instrument propensity score models (ivmodel)logit MLE (default), CBPS, IPT; probit MLE for the weighting estimators
Weightingnormalized (default) or unnormalized moments; sampling weights
Standard errorsjoint sandwich over all estimation stages; robust or cluster-robust
Diagnosticsplot(fit) for propensity-score overlap (histogram or density), covariate balance (love plot or per-covariate densities), and weight distributions; balance() / balance(fit, detail = TRUE) tables; balance_test() (Imai–Ratkovic overidentification balance test); first-stage strength on every printout
Complier profilingcomplier_means() for population-vs-complier covariate means; kappa_weights() for the underlying Abadie-kappa weights
Fieller confidence setsconfint(fit, method = "fieller") — weak-instrument-robust; available for all ratio-form estimators including kappa/kappa0
Bootstrapdrlate(..., vcov = "bootstrap") — cluster-aware percentile intervals
DR Hausman testdr_hausman() — test of unconfoundedness under one-sided noncompliance (2022 paper, Section 5)
Estimator comparisondrlate_compare() with a dot-whisker plot
Overlappstolerance enforcement, osample violator flagging

Documentation

The package website serves the primer, the package overview and Stata replication, and the function reference.

License

MIT. Portions derived from the Stata package drlate, © 2026 S. Derya Uysal, Tymon Słoczyński, and Jeffrey M. Wooldridge (MIT licensed).

Metadata

Version

0.3.1

License

Unknown

Platforms (79)

    Darwin
    FreeBSD
    Genode
    GHCJS
    Linux
    MMIXware
    NetBSD
    none
    OpenBSD
    Redox
    Solaris
    uefi
    wasip1
    Windows
Show all
  • aarch64-darwin
  • aarch64-freebsd
  • aarch64-genode
  • aarch64-linux
  • aarch64-netbsd
  • aarch64-none
  • aarch64-uefi
  • aarch64-windows
  • aarch64_be-none
  • arc-linux
  • arm-none
  • armv5tel-linux
  • armv6l-linux
  • armv6l-netbsd
  • armv6l-none
  • armv7a-linux
  • armv7a-netbsd
  • armv7l-linux
  • armv7l-netbsd
  • avr-none
  • i686-cygwin
  • i686-freebsd
  • i686-genode
  • i686-linux
  • i686-netbsd
  • i686-none
  • i686-openbsd
  • i686-windows
  • javascript-ghcjs
  • loongarch64-linux
  • m68k-linux
  • m68k-netbsd
  • m68k-none
  • microblaze-linux
  • microblaze-none
  • microblazeel-linux
  • microblazeel-none
  • mips-linux
  • mips-none
  • mips64-linux
  • mips64-none
  • mips64el-linux
  • mipsel-linux
  • mipsel-netbsd
  • mmix-mmixware
  • msp430-none
  • or1k-none
  • powerpc-linux
  • powerpc-netbsd
  • powerpc-none
  • powerpc64-linux
  • powerpc64le-linux
  • powerpcle-none
  • riscv32-linux
  • riscv32-netbsd
  • riscv32-none
  • riscv64-linux
  • riscv64-netbsd
  • riscv64-none
  • rx-none
  • s390-linux
  • s390-none
  • s390x-linux
  • s390x-none
  • sh4-linux
  • vc4-none
  • wasm32-wasip1
  • wasm64-wasip1
  • x86_64-cygwin
  • x86_64-freebsd
  • x86_64-genode
  • x86_64-linux
  • x86_64-netbsd
  • x86_64-none
  • x86_64-openbsd
  • x86_64-redox
  • x86_64-solaris
  • x86_64-uefi
  • x86_64-windows