plot_rdd_binned: Regression discontinuity raw binned scatter

Description Usage Arguments Value

Description

Regression discontinuity raw binned scatter

Usage

1
2
plot_rdd_binned(data, forcing, outcome, cutoff = 0, weights = NULL,
  ylab = "Outcome", xlab = "Running Variable", bw = NULL, se = T)

Arguments

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.

Value

a list of the plot (in ggplot) and the corresponding binned data


shommazumder/shomR documentation built on May 24, 2019, 2:52 p.m.