Estimation of Marginal Treatment Effects using Local Instrumental Variables
Overview
In the generalized Roy model, the marginal treatment effect (MTE) can be used as a building block for constructing conventional causal parameters such as the average treatment effect (ATE) and the average treatment effect on the treated (ATT). Given a treatment selection equation and an outcome equation, the function mte() estimates the MTE via the semiparametric local instrumental variables method or the normal selection model. The function mte_at() evaluates MTE at different values of the latent resistance u with a given X = x, and the function mte_tilde_at() evaluates MTE projected onto the estimated propensity score. The function ace() estimates population-level average causal effects such as ATE, ATT, or the marginal policy relevant treatment effect.
- Fix "lost braces" note in the documentation of
mte_tilde_at()(use\describerather than\itemizefor the nested list in\value). - Point
BugReportsto the GitHub issues page.
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-27
- NOTE13 NOTE2026-06-09
- ERROR12 NOTE, 1 ERROR2026-06-08
- NOTE14 NOTE2026-03-10
Documentation
- Help pages
- 5
- Examples that run
- 100%4 run in a plain check
- Exported functions with examples
- 100%
- Documented parameters
- 100%
- Return-value docs
- 100%
- Help pages citing references
- 60%
Downloads
Repository
Stars over time
Forks over time
Issues over time
Commits over time
4 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/xiangzhou09/localiv on 2026-10-21.
Dependencies
Installing localIV adds 68 packages (35 with compiled code, 63 MB of source tarballs). Heaviest: stringi 11 MB, ggplot2 6.0 MB, doBy 4.3 MB.
Code & Tests
Datasets
People & History
Pick two releases to compare their code metrics.
- RR 4.6.0 released · 2026-04-24
- RR 4.5.0 released · 2025-04-11
- RR 4.4.0 released · 2024-04-24
- RR 4.3.0 released · 2023-04-21
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- 0.3.2Latest
- 0.3.12020-06-26 · diff ↗
- RR 4.0.0 released · 2020-04-24
- 0.3.02020-04-01 · diff ↗ ·
removed 4 exports
average, eval_mte, eval_mte_tilde, mprteadded 5 exports
ace, mte_at, mte_localIV, mte_normal, mte_tilde_at - 0.2.12019-05-06 · diff ↗
- 0.2.0
- RR 3.6.0 released · 2019-04-26
- 0.1.02018-08-05
- RR 3.5.0 released · 2018-04-23
Package metadata
- First published
- 2018-08-05
- Total releases
- 6 / 8 yrs
- License
- GPL (>= 3) OSI
- Minimum R
- ≥ 3.3.0
- Bundled data
- 230 KB / 1 file
- Download size
- 269 KB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("localIV")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.