Code:
rdbwselect black maxscoreraw17,c(-0.9136) vce(cluster refer_id)
local bw=e(h_1)
regress black c maxscoreraw17 if maxscoreraw17>(-0.9136-`bw') & maxscoreraw17<(-0.9136+`bw'), vce(cluster refer_id)
With the above code, I am trying to see if I can get the same results as if I use the code:
Code:
rdrobust black maxscoreraw17, c(-.9136) vce(cluster refer_id)
However, it doesn't seem to be working and I don't know if anyone here is familiar with rdrobust and can help. I am basically trying to get the optimal bandwidth from rdbwselect, put it into a regression and get the same coefficient as rdrobust. Is this even possible?? (A helpful note: I created c with is an indicator variable that equals 1 if you are above my cutoff of -.9136 and 0 otherwise.....)