Skip to content
/ ivreg Public

❗ This is a read-only mirror of the CRAN R package repository. ivreg — Instrumental-Variables Regression by '2SLS', '2SM', or '2SMM', with Diagnostics. Homepage: https://zeileis.github.io/ivreg/ Report bugs for this package: https://github.com/zeileis/ivreg/issues/

Notifications You must be signed in to change notification settings

cran/ivreg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

79b7ab3 · Jan 19, 2025

History

7 Commits
Jan 19, 2025
Sep 19, 2024
Sep 3, 2020
Jan 19, 2025
Jan 19, 2025
Jan 19, 2025
Apr 21, 2024
Jan 19, 2025
Jan 19, 2025
May 28, 2021
Jan 19, 2025
Sep 3, 2020

Repository files navigation

Two-Stage Least-Squares Regression with Diagnostics

An implementation of instrumental variables regression using two-stage least-squares (2SLS) estimation, based on the ivreg() function previously in the AER package. In addition to standard regression functionality (parameter estimation, inference, predictions, etc.) the package provides various regression diagnostics, including hat values, deletion diagnostics such as studentized residuals and Cook’s distances; graphical diagnostics such as component-plus-residual plots and added-variable plots; and effect plots with partial residuals.

Instrumental variables regression:

library("ivreg")
ivreg(Q ~ P + D | D + F + A, data = Kmenta)

Via two-stage least squares (2SLS):

2SLS

With diagnostics:

Effects plot

QQ plot

Influence plot

About

❗ This is a read-only mirror of the CRAN R package repository. ivreg — Instrumental-Variables Regression by '2SLS', '2SM', or '2SMM', with Diagnostics. Homepage: https://zeileis.github.io/ivreg/ Report bugs for this package: https://github.com/zeileis/ivreg/issues/

Resources

Stars

Watchers

Forks

Packages

No packages published