Skip to content

localIV

0.3.2Package record

Estimation of Marginal Treatment Effects using Local Instrumental Variables

0packages depend
2.8Kdownloads / year
–test coverage
13/13flavors OK

Overview

About

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.

Changes in 0.3.2
  • Fix "lost braces" note in the documentation of mte_tilde_at() (use \describe rather than \itemize for the nested list in \value).
  • Point BugReports to the GitHub issues page.

From NEWS.md in the release

Install

Health

CRAN checks
13OK
Slowest check: 1.3 min · r-oldrel-windows-x86_64
Status changes
  • OK13 OK2026-08-27
  • NOTE13 NOTE2026-06-09
  • ERROR12 NOTE, 1 ERROR2026-06-08
  • NOTE14 NOTE2026-03-10
Advisories

none known

Documentation

In release 0.3.2
READMEYes · 378 wordsVignettesNoNEWSYes · 100% structured · mentions 0.3.2Citation fileNoWebsitenot declared in DESCRIPTION
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

2.8K
CRAN downloads in the past year
Rank #12,565 · ~8/day · ~229/mo
Daily download trend is not available in this view yet.
27530 days
89790 days
2.8K1 year
Compare downloads with other packages →
Also on82 r2u2 autocran

Repository

6Stars
2Forks
1Open issues
0Open PRs
0Releases
52Commits
1Commit identities
52 commits · Last activity 2026-08-20 · 0% stars, 30d
Responsiveness
not measured

Stars over time

2025-03-30 · 62026-07-07 · 6
PracticesBeta

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.

Continuous integration (2)
GitHub ActionsTravis CI (config file)
Docs source (1)
README.Rmd
Lint, format, editor (1)
RStudio project
How this is detected·Detection ruleset v4 (2026-10-20)

Dependencies

Declared dependencies
5 external dependencies (excludes base and recommended)

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.

Depends (1)
R >= 3.3.0
Imports (5)
KernSmoothmgcvrlangsampleSelectionstats
LinkingTo (0)
none
Suggests (3)
Enhances (0)
none
Reverse dependencies
0direct
0indirect

Nothing depends on this yet.

Datasets

People & History

People (1)
Author, Maintainer since 0.1.0 (2018)
Releases (6)

Pick two releases to compare their code metrics.

  • R
    R 4.6.0 released · 2026-04-24
  • R
    R 4.5.0 released · 2025-04-11
  • R
    R 4.4.0 released · 2024-04-24
  • R
    R 4.3.0 released · 2023-04-21
  • R
    R 4.2.0 released · 2022-04-22
  • R
    R 4.1.0 released · 2021-05-18
  • 0.3.2Latest
    record
    2020-06-26 · current release · diff ↗
  • 0.3.1
    record
    2020-06-26 · diff ↗
  • R
    R 4.0.0 released · 2020-04-24
  • 0.3.0
    record
    2020-04-01 · diff ↗ ·
    removed 4 exports
    average, eval_mte, eval_mte_tilde, mprte
    added 5 exports
    ace, mte_at, mte_localIV, mte_normal, mte_tilde_at
  • 0.2.1
    record
    2019-05-06 · diff ↗
  • 0.2.0
    record
    2019-04-28 · diff ↗ ·
    added 2 exports
    eval_mte, eval_mte_tilde
  • R
    R 3.6.0 released · 2019-04-26
  • 0.1.0
    record
    2018-08-05
  • R
    R 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")
Zhou, X. (2026). localIV: Estimation of Marginal Treatment Effects using Local Instrumental Variables (Version 0.3.2) [Computer software]. https://doi.org/10.32614/CRAN.package.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.

APA

Balamuta, J. J. (2026). R Observatory: Metrics for localIV version 0.3.2 [Data set]. HJJB, LLC. Data release v2026-10-25. https://doi.org/10.5281/zenodo.21843040

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.

Report a problem with this page →

Privacy choices

These apply to this browser and are stored on this device only. Nothing about your choice is sent to us.

Read the privacy policy