plot.RDperm: Plot RDperm

View source: R/plot.RDperm.R

plot.RDpermR Documentation

Plot RDperm

Description

Plots a histogram and empirical cdf

Usage

## S3 method for class '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(s)

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

## Not run: 
permtest<-RDperm(W=c("demshareprev","demwinprev"),z="difdemshare",data=lee2008)
plot(permtest,w="demshareprev")

## End(Not run)

RATest documentation built on Sept. 29, 2022, 9:08 a.m.