Description Usage Arguments Details Value Examples
provides convenient plot method for qed_rdd objects
1 2 | ## S3 method for class 'qed_rdd'
plot(rdd_ls, cutoff = 0, interaction = TRUE)
|
cutoff |
numeric, the cutoff criterion; default is 0 as qed_rdd will by default transform
covariate |
interaction |
boolean, whether or not to allow for slope to be different between treatment and control |
df |
object of type |
One can add and edit plot using the ggplot functions, such as using xlab or ylab to change the x and y labels.
The function automatically plots a line at the discontinuity if you kept
the qed_rdd
default of transforming the x
variable to
center the discontinuity at zero; otherwise, you must specify the discontinuity yourself.
By default the plot allows for an interaction effect between x
and the
treatment; one can however set this to false.
a ggplot object
1 2 3 4 5 6 7 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.