No announcement yet.
  • Filter
  • Time
  • Show
Clear All
new posts

  • KINKYREG: new Stata command for instrument-free inference in linear regression models with endogenous regressors

    I just released a brand-new Stata package called kinkyreg, which I developed jointly with Jan Kiviet and which I will present tomorrow at the virtual UK Stata Conference. This command implements the instrument-free inference approach named "kinky least squares" (KLS) estimation which was proposed by Jan Kiviet in a sequence of recent papers. The KLS estimator analytically corrects the bias of the inconsistent OLS estimator when one or more of the regressors are endogenous. It does so by making an assumption about the admissible degree of endogeneity. By constraining the endogeneity correlations within reasonably narrow bounds, set identification of the coefficients is achieved. By considering the union of confidence intervals over a grid of endogeneity correlations, asymptotically conservative inference can be performed.

    The main output of the kinkyreg package is graphical. The main graphs display the coefficient estimates over a grid of postulated endogeneity correlations including their confidence bands, possibly in comparison to the conventional 2SLS estimates if the user specifies instrumental variables. Often, and especially in the presence of weak (or invalid) instruments, KLS confidence intervals can be more informative than 2SLS intervals.

    A main benefit of the KLS approach is that it enables testing of the exclusion restrictions for excluded (instrumental) variables, which is not possible with the 2SLS approach. (Note that 2SLS-based overidentifying restrictions tests still maintain the untested assumption that a subset of instruments is validly excluded.) This is implemented as a kinkyreg postestimation feature (estat exclusion).

    Further postestimation features include tests for linear hypotheses (estat test), Ramsey's RESET test (estat reset), heteroskedasticity tests (estat hettest) and Durbin's alternative test for serial correlation (estat durbinalt).

    The package is available for installation from my personal website. Type the following in Stata's command window:
    net install kinkyreg, from(
    The basic command syntax is similar to ivregress, although the specification of instrumental variables is optional. (The latter are only used to compare the KLS to the 2SLS estimates.) For example,
    . use
    . kinkyreg lw s expr tenure rns smsa _I* (iq = age mrt), range(-0.7 0.7) inference(iq s)
    The range() option specifies the admissible range of correlations of the endogenous regressor iq with the error term. The inference() option produces graphical output with KLS estimates over the specified range and corresponding confidence intervals for the specified regressors iq and s as a function of the endogeneity correlation. The results are compared to the 2SLS estimates with instruments age and mrt. (To see the graphs, just run the above example in Stata.) Exclusion restriction tests for the two instruments can then simply be obtained in a postestimation step:
    . estat exclusion
    Again, the output will be primarily graphical.

    The help files explain the details of the command syntax and the available options:
    help kinkyreg
    help kinkyreg postestimation
    Examples are included in the help file. Detailed background information and a more extensive example can also be found in an accompanying manuscript (see references below). Comments are welcome.


  • #2
    With thanks to Kit Baum, the kinkyreg package is now also available on SSC:
    ssc install kinkyreg
    My presentation slides from this week's virtual UK Stata Conference are accessible as well: