Skip to content

ivreg

0.6-8

Instrumental-Variables Regression by '2SLS', '2SM', or '2SMM', with Diagnostics

18packages depend
159.8Kdownloads / year
68.3%test coverage
13/13checks pass

Overview

About
Maintained by Achim ZeileisFirst published 2020-09-0310 releasesCRAN page ↗GitHub ↗

Instrumental variable estimation for linear models by two-stage least-squares (2SLS) regression or by robust-regression via M-estimation (2SM) or MM-estimation (2SMM). The main ivreg() model-fitting function is designed to provide a workflow as similar as possible to standard lm() regression. A wide range of methods is provided for fitted ivreg model objects, including extensive functionality for computing and graphing regression diagnostics in addition to other standard model tools.

Install

Health

CRAN checks
13OK
Slowest check: 2.1 min · r-oldrel-macos-x86_64
Code health
Yes
Tests · ratio 0.16
68.3%
Coverage · measured lines
100%
Documentation · exports
5
Dependencies · direct
Check history
  • OK2026-08-05
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • NOTE2026-08-01
    12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • OK2026-07-12
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-07-11
    11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE
  • OK2026-06-09
    13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
Show 3 earlier snapshots
  • ERROR2026-06-08
    12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE
  • OK2026-03-12
    14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE
  • ERROR2026-03-10
    13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE

Documentation

Documentation
READMEYes · 110 wordsVignettesYes · dynamicpkgdown siteNoNEWSYes · 100% structuredCode of conductNoContributing guideNo
Examples that run
100%
Documented parameters
79%
Return-value docs
100%
References docs
38%

Downloads

159.8K
CRAN downloads in the past year
Rank #1,122 · ~438/day · ~13.3K/mo
Daily download trend is not available in this view yet.
9.3K30 days
33.2K90 days
159.8K1 year
Compare downloads with other packages →
Also on4K r2u2.2K conda_forge60 c2d4u

Repository

Repository
25Stars
6Forks
0Open issues
0Open PRs
0Releases
212Commits
6Contributors
instrumental-variablesregression-diagnosticstwo-stage-least-squares-regression
212 commits · Last activity 2026-07-10

Repository practices

Upstream repositoryBeta

2 development-tooling and community-health practices detected across 2 families in the upstream repository

Checks run against github.com/zeileis/ivreg on 2026-08-16.

Continuous integration (1)
GitHub Actions
Docs source (1)
README.Rmd
How this is detected·Detection ruleset v1 (2026-07-18)

Dependencies

Declared dependencies
13 external dependencies (excludes base and recommended)
Depends (1)
R >= 3.6.0
Imports (5)
LinkingTo (0)
none
Enhances (0)
none

Code & Tests

Datasets

People & History

People (5)
Maintainer (1)
Author, Maintainer
Authors (3)
Author, Maintainer
Author
Contributors (2)
Contributor · added in 0.6-3
Contributor · added in 0.6-1
Package Timeline

10 releases. Pick two to compare their code metrics. R releases are shown for context.

  • 0.6-8Latest
    2026-07-11 · current release · diff ↗
  • R
    R 4.6.0 released · 2026-04-24
  • 0.6-7
    2026-03-02 · diff ↗
  • 0.6-6
    2026-02-09 · diff ↗
  • R
    R 4.5.0 released · 2025-04-11
  • 0.6-5
    2025-01-19 · diff ↗
  • 0.6-4
    2024-09-19 · diff ↗
  • R
    R 4.4.0 released · 2024-04-24
  • 0.6-3
    2024-04-20 · diff ↗
  • R
    R 4.3.0 released · 2023-04-21
  • 0.6-2
    2023-03-17 · diff ↗
  • R
    R 4.2.0 released · 2022-04-22
  • 0.6-1
    2021-10-15 · diff ↗
  • 0.6-0
    2021-05-28 · diff ↗
  • R
    R 4.1.0 released · 2021-05-18
  • 0.5-0
    2020-09-03
Show 1 earlier events
  • R
    R 4.0.0 released · 2020-04-24

Package metadata

First published
2020-09-03
Total releases
10 / 6 yrs
License
GPL (>= 2) OSI
Minimum R
≥ 3.6.0
Bundled data
42 KB / 3 files
Download size
857 KB
Installed size
not tracked yet
With dependencies
not tracked yet
Appears in task views

Cite

Cite this package

Run in R for the authors' preferred citation:

citation("ivreg")
Zeileis, A., R Core Team, Fox, J., Kleiber, C., & Kuschnig, N. (2026). ivreg: Instrumental-Variables Regression by '2SLS', '2SM', or '2SMM', with Diagnostics (Version 0.6-8) [Computer software]. https://doi.org/10.32614/CRAN.package.ivreg

This is what citation() produces when a package has no citation file of its own. If it prints something else, use that.

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 ivreg version 0.6-8 [Data set]. HJJB, LLC. Data release v2026-08-17. https://doi.org/10.5281/zenodo.21843040

From data release v2026-08-17, 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