*!version 11.1.0 2026-05-22

Title

rdrobustplot -- Diagnostic plot for a previous rdrobust result.

Syntax

rdrobustplot
[,
nbins(# #)
binselect(binmethod)
noci
shade
scale(# #)
title(string)
xtitle(string)
ytitle(string)
col_dots(color)
col_lines(color)
graph_options
]

Description

rdrobustplot produces a diagnostic RD plot for the results of the
most recent rdrobust call. It wraps rdplot with the
main bandwidth and polynomial order that rdrobust used, and decorates the
subtitle with the estimated RD coefficient and its robust
bias-corrected confidence interval.

This mirrors the plot.rdrobust() S3 method in the R package and the
plot_rdrobust() function in the Python package.

Requires Stata 16 or later.

Options

nbins(# #) number of bins per side; default is 20 20.

binselect(binmethod) bin selection rule; default is
esmv (mimicking-variance evenly-spaced bins). See rdplot.

noci suppresses the per-bin confidence intervals.

shade draws the pointwise confidence bands as a shaded ribbon
instead of error bars.

title(), xtitle(), ytitle() custom text for the plot
elements (defaults follow rdrobust's outcome / running variable).

col_dots(), col_lines() colors for the binned means and the
polynomial fit line.

Any other option is passed through to rdplot's
graph_options().

Examples

sysuse rdrobust_senate, clear

rdrobust vote margin

rdrobustplot

With cluster-robust variance and fuzzy RD:

rdrobust vote margin, vce(cr3 state)

rdrobustplot, shade

Authors

Sebastian Calonico, University of California, Davis. scalonico@ucdavis.edu.

Matias D. Cattaneo, Princeton University. matias.d.cattaneo@gmail.com.

Max H. Farrell, University of California, Santa Barbara. mhfarrell@gmail.com.

Rocio Titiunik, Princeton University. rocio.titiunik@gmail.com.