Description Usage Arguments Value
Regression discontinuity raw binned scatter
1 2 | plot_rdd_binned(data, forcing, outcome, cutoff = 0, weights = NULL,
ylab = "Outcome", xlab = "Running Variable", bw = NULL, se = T)
|
data |
A dataframe |
forcing |
The forcing/running variable as a string |
outcome |
The outcome varaible as a string |
cutoff |
The cutoff. Defaults to 0. |
weights |
Any weights you want to use as a string. Defaults to NULL. |
ylab |
The label for the y axis. |
xlab |
The label for the x axis. |
bw |
The bandwidth. Defaults to the entire support of the forcing variable. |
se |
Logical for whether to include the standard errors in the plot. |
a list of the plot (in ggplot) and the corresponding binned data
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.