For example, suppose I want to draw RDD plot with confidence intervals (eg., upper and lower longdash lines) using the data below. How should I proceed?
x<-runif(1000,-1,1)
y<-5+3*x+2*(x>=0)+rnorm(1000)
rdplot(y,x)
The documentation says: ci optional graphical option to display confidence intervals of selected level for each bin.
Any idea how to actually use the argument ci
?