Learn R Programming

RATest (version 0.1.10)

plot.RDperm: Plot RDperm

Description

Plots a histogram and empirical cdf

Usage

# S3 method for RDperm
plot(x, w, plot.class = "both", ...)

Arguments

x

Object of class "RDperm"

w

Character. Name of variable to be plotted

plot.class

Character. Can be: "both" for a histogram and cdf plot, "hist" for a histogram or "cdf" for only the cdf plot

...

Additional ggplot2 controls

Author

Maurcio Olivares

Ignacio Sarmiento Barbieri

References

Canay, I and Kamat V, (2018) Approximate Permutation Tests and Induced Order Statistics in the Regression Discontinuity Design. The Review of Economic Studies, 85(3): 1577-1608

Examples

Run this code
if (FALSE) {
permtest<-RDperm(W=c("demshareprev","demwinprev"),z="difdemshare",data=lee2008)
plot(permtest,w="demshareprev")
}

Run the code above in your browser using DataLab