Dear all, I am a freshman and learning Regression Discontinuity Design in recent days. Command rdplot is a newly developed code by very renowned scholars in this field. Now I have several questions concerning this:
1. The confidence intervals. Use the classic data from: https://sites.google.com/site/rdpackages/rdrobust. With the code as below, we can get the picture afterwards:
rdplot demvoteshfor2 demmv,nbins(15 35) graph_options(xlabel(-100(25)100) legend(off) xtitle("demmv") ytitle("demvoteshfor2")) ci(95) shade genvars p(2)

According to the papers of my interest like https://www.sciencedirect.com/scienc...04387815001327 and the cmogram command, I can also draw this picture using collapsed data with tw scatter and the original data with qfitci command:
tw (scatter rdplot_mean_y rdplot_mean_x) ///
(qfitci demvoteshfor2 demmv if demmv<0,fcolor(none)) ///
(qfitci demvoteshfor2 demmv if demmv>=0,fcolor(none)),xline(0) legend(off)

Apparently, the confidence intervals are different. Now I wonder why there exists the difference and which one should be favored? or any one of them is wrong? I guess it's related to the way in which Stata draws the line like the difference between lowess and connected scatter but not pretty sure.
2. I occasionally found this command cmogram developed by Christopher Robert, with whose code I can quickly get a same picture:
cmogram demvoteshfor2 demmv, cut(0) scatter lineat(0) qfitci

It seems that the second and the third method to draw the confidence intervals would be more welcome. But cmogram has a defect. It does not have a weight option like kernal or triangle which is widely applied in an RDD research. Anyone knows how to improve it?
3. It seems thata rdplot cannot be used together with a tw type graph commands. Anyone knows how to reach this goal?
Any statalister interested in this method is welcome. appreciate any comments on related work in advance.
1. The confidence intervals. Use the classic data from: https://sites.google.com/site/rdpackages/rdrobust. With the code as below, we can get the picture afterwards:
rdplot demvoteshfor2 demmv,nbins(15 35) graph_options(xlabel(-100(25)100) legend(off) xtitle("demmv") ytitle("demvoteshfor2")) ci(95) shade genvars p(2)
According to the papers of my interest like https://www.sciencedirect.com/scienc...04387815001327 and the cmogram command, I can also draw this picture using collapsed data with tw scatter and the original data with qfitci command:
tw (scatter rdplot_mean_y rdplot_mean_x) ///
(qfitci demvoteshfor2 demmv if demmv<0,fcolor(none)) ///
(qfitci demvoteshfor2 demmv if demmv>=0,fcolor(none)),xline(0) legend(off)
Apparently, the confidence intervals are different. Now I wonder why there exists the difference and which one should be favored? or any one of them is wrong? I guess it's related to the way in which Stata draws the line like the difference between lowess and connected scatter but not pretty sure.
2. I occasionally found this command cmogram developed by Christopher Robert, with whose code I can quickly get a same picture:
cmogram demvoteshfor2 demmv, cut(0) scatter lineat(0) qfitci
It seems that the second and the third method to draw the confidence intervals would be more welcome. But cmogram has a defect. It does not have a weight option like kernal or triangle which is widely applied in an RDD research. Anyone knows how to improve it?
3. It seems thata rdplot cannot be used together with a tw type graph commands. Anyone knows how to reach this goal?
Any statalister interested in this method is welcome. appreciate any comments on related work in advance.
Comment