Skip to content

ivreg

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

v0.6-7 · Mar 1, 2026 · GPL (>= 2)

Description

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.

Downloads

11.3K

Last 30 days

1174th

33.1K

Last 90 days

135.8K

Last year

Trend: -2.4% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 11, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 10, 2026
ERROR r-devel-windows-x86_64

re-building of vignette outputs

Error(s) in re-building vignettes:
--- re-building 'Diagnostics-for-2SLS-Regression.Rmd' using rmarkdown
--- finished re-building 'Diagnostics-for-2SLS-Regression.Rmd'

--- re-building 'ivreg.Rmd' using rmarkdown

Quitting from ivreg.Rmd:175-177 [mod
...[truncated]...
rror: processing vignette 'ivreg.Rmd' failed with diagnostics:
a character vector argument expected
--- failed re-building 'ivreg.Rmd'

SUMMARY: processing the following file failed:
  'ivreg.Rmd'

Error: Vignette re-building failed.
Execution halted

Reverse Dependencies (16)

depends

Dependency Network

Dependencies Reverse dependencies car Formula lmtest MASS ivgets OneSampleMR comorbidPGS robust2sls PartialNetwork Rbearcat clarify clubSandwich insight lmw marginaleffects modelsummary parameters performance report +1 more reverse deps ivreg

Version History

new 0.6-7 Mar 10, 2026
updated 0.6-7 ← 0.6-6 diff Mar 1, 2026
updated 0.6-6 ← 0.6-5 diff Feb 8, 2026
updated 0.6-5 ← 0.6-4 diff Jan 18, 2025
updated 0.6-4 ← 0.6-3 diff Sep 18, 2024
updated 0.6-3 ← 0.6-2 diff Apr 19, 2024
updated 0.6-2 ← 0.6-1 diff Mar 16, 2023
updated 0.6-1 ← 0.6-0 diff Oct 14, 2021
updated 0.6-0 ← 0.5-0 diff May 27, 2021
new 0.5-0 Sep 2, 2020