plot.r3d.Rd
Produces a simple plot of the estimated distributional RD effect \(\tau(q)\) as a function
of the quantile \(q\), optionally with uniform confidence bands if they are available in
the fitted r3d
object.
# S3 method for class 'r3d'
plot(
x,
main = NULL,
ylim = NULL,
xlab = "Quantile",
ylab = "Treatment Effect",
col = "blue",
lwd = 1.5,
ci_col = "gray",
ci_lty = 2,
ref_line = TRUE,
...
)
An r3d
object from r3d
.
An overall title for the plot. If NULL
, a default title is constructed.
Y-axis limits. If NULL
, the limits are set automatically.
Label of the x-axis, defaults to "Quantile"
.
Label of the y-axis, defaults to "Treatment Effect"
.
Color for the main line. Defaults to "blue"
.
Line width for the main curve. Defaults to 1.5.
Color for the confidence-band boundaries. Defaults to "gray"
.
Line type for the confidence-band boundaries. Defaults to 2 (dashed).
Logical indicating whether to draw a horizontal reference line at 0. Default TRUE
.
Additional plotting parameters passed to plot
.
Returns the x
object invisibly.
If bootstrap inference was performed (boot=TRUE
in r3d
), the object
contains cb_lower
and cb_upper
for uniform confidence bands.
These bands are added to the plot if available.