plot.riSynth: Plot Point Estimate and Randomization Distribution for...

Description Usage Arguments Details

View source: R/regression_functions.R

Description

A plot showing the point estimate for the treatment effect as a red line, and the randomization distribution of the treatment effect as gray bars.

Usage

1
2
3
## S3 method for class 'riSynth'
plot(x, title = NULL, xlab = NULL, ylab = NULL,
  scale = F, xmin, xmax, att = T, axe.y = F, ...)

Arguments

x

an riSynth object

title

The main title (on top)

xlab

X axis label

ylab

Y axis label

scale

logical; if TRUE the point estimates and the randomization distribution is demeaned and normalized before plotting (default is FALSE)

xmin

a numeric indicating the minimum value of the plot's main axix

xmax

a numeric indicating the maximum value of the plot's main axix

att

logical; currently unused

axe.y

logical; if TRUE the y-axis is shown (default is FALSE)

...

Other arguments passed on to ggplot2::ggplot. Currently unused

Details

plot.riSynth converts a riSynth object into a riFit object and then make a call to plot.riFit.


mdtrinh/vietnamdata documentation built on May 3, 2019, 11:49 p.m.