diff --git a/articles/Diagnostics-for-2SLS-Regression.html b/articles/Diagnostics-for-2SLS-Regression.html index 17626bb..dc7080e 100644 --- a/articles/Diagnostics-for-2SLS-Regression.html +++ b/articles/Diagnostics-for-2SLS-Regression.html @@ -97,7 +97,7 @@

John Fox, Christian Kleiber, Achim Zeileis

last modified: -2020-11-19

+2023-05-16 Source: vignettes/Diagnostics-for-2SLS-Regression.Rmd @@ -114,12 +114,13 @@

Introductionivreg.fit() function in the package -computes the 2SLS estimator employing a low-level interface not -generally intended for direct use, and returns a list containing -quantities that facilitate the computation of various diagnostics. The -ivreg() function provides a user-friendly formula-based -interface to ivreg.fit().

+regressors (see e.g., Greene 2003). The +ivreg.fit() function in the package computes the 2SLS +estimator employing a low-level interface not generally intended for +direct use, and returns a list containing quantities that facilitate the +computation of various diagnostics. The ivreg() function +provides a user-friendly formula-based interface to +ivreg.fit().

ivreg() is derived from and supersedes the ivreg() function in the AER package (Kleiber and Zeileis 2008), making additional provision for regression diagnostics. The principal subject of this @@ -179,9 +180,9 @@

Review of 2SLS Estimationsecond stage of 2SLS in Theil’s approach.

As an alternative, we can obtain exactly the same estimates \(b_{\mathrm{2SLS}}\) of \(\beta\) by performing an OLS regression of -\(y\) on \(\widehat{X}\), producing \(b_{\mathrm{2SLS}} = (\widehat{X}^\top \widehat{X}) -\widehat{X}^\top y\). This is Basmann’s approach and it motivates -the name “2SLS.”

+\(y\) on \(\widehat{X}\), producing \(b_{\mathrm{2SLS}} = (\widehat{X}^\top +\widehat{X})^{-1} \widehat{X}^\top y\). This is Basmann’s +approach and it motivates the name “2SLS.”

Whether we think of the second stage as IV estimation or OLS regression, we can combine the two stages into a single formula: \[ b_{\mathrm{2SLS}} = [X^\top Z(Z^\top Z)^{-1} Z^\top X]^{-1} X^\top Z @@ -481,10 +482,10 @@

Unusual Data Diagnostics: An Exampl ## Multiple R-Squared: 0.6396, Adjusted R-squared: 0.572 ## Wald test: 10.7 on 3 and 16 DF, p-value: 0.0004196

By default, summary() prints the results of three -“diagnostic” tests for 2SLS regression. These tests (which can be -suppressed by setting the argument diagnostics=FALSE) are -not the focus of the vignette and so we’ll comment on them only -briefly:

+“diagnostic” tests for 2SLS regression (see e.g., +Greene 2003). These tests (which can be suppressed by setting the +argument diagnostics=FALSE) are not the focus of the +vignette and so we’ll comment on them only briefly: