Hi all,
I am performing an estimation using a sharp RDD. A graphical inspection of bunching at the cutoff gives the following picture:

I created the graph by using:
As my running variable (log population) is discrete I cannot use the McCrary density test without further adaptions.
Yet, I would like to provide a formal test and not just a graphical inspection. I would like to perform a regression analysis using the bin averages and a third-order polynomial specification in the log of population.
I tried the following:
I get a coefficient of .9317 (significant at the 1-percent level). However, I am not sure whether I can do it as simple as this as my Stata output shows me that in the regression only 30 observations are used (as I have 30 bins).
So my question is whether I can do it like this and if not, how can I then perform a regression analysis using the bin averages and a third-order polynomial specification in the log of population.
Thank you in advance already
Best, Kathrin
I am performing an estimation using a sharp RDD. A graphical inspection of bunching at the cutoff gives the following picture:
I created the graph by using:
Code:
twoway__histogram_gen logwpop if logwpop>=-.15, start(-.15) width(0.01) generate(h x, replace) twoway (bar h x if x<0, barwidth(0.01) bstyle(histogram)) (bar h x if x>=0, barwidth(0.01) bstyle(histogram)) (lpoly h x if x<0, degree(1) kernel(epanechnikov) lwidth(1) color(blue)) (lpoly h x if x>=0, degree(1) kernel(epanechnikov) lwidth(1) color(red)), ytitle("Density") xtitle("Log population") legend(off)
Yet, I would like to provide a formal test and not just a graphical inspection. I would like to perform a regression analysis using the bin averages and a third-order polynomial specification in the log of population.
I tried the following:
Code:
gen Dx=x>0 gen x_2=x^2 gen x_3=x^3 gen x_Dx1=x*Dx gen x_Dx2=x_2*Dx gen x_Dx3=x_3*Dx reg h Dx x x_2 x_3 x_Dx1 x_Dx2 x_Dx3, robust
So my question is whether I can do it like this and if not, how can I then perform a regression analysis using the bin averages and a third-order polynomial specification in the log of population.
Thank you in advance already
Best, Kathrin
Comment