Short introduction to regression discontinuity designs (with examples and R code). Second of two parts.
See syntax for worked example using simulated data.