Stata Command: npeivreg
Executes estimation of nonparametric errors-in-variables (EIV) regression and construction of its uniform confidence band based on Kato and Sasaki (2019). Use it when you have repeated measurements, X1i and X2i, of an unobserved independent variable Xi, and you want to draw the nonparametric regression function of Yi on Xi, together with its uniform confidence band. The graph below depicts an example of drawing the EIV regression of Yi = # of doctor visits on Xi = body mass index (BMI), where two measurements, X1i = clinically measured BMI and X2i = self-reported BMI, with potential measurement errors are used. The sample consists of U.S. men aged 50-59 in NHANES III.
Installation:
. ssc install npeivreg
Usage:
. npeivreg huq050 bmi_exam bmi_self, domain(1.5)
Help:
. help npeivreg
Reference: Kato, K. and Y. Sasaki (2019) Uniform Confidence Bands for Nonparametric Errors-in-Variables Regression. Journal of Econometrics, 213 (2), pp. 516-555. Paper.