DesignLibrary (version 0.1.0)

regression_discontinuity_designer: Create a regression discontinuity design

Description

Builds a design with sample from population of size N. The average treatment effect local to the cutpoint is equal to tau. It allows for specification of the order of the polynomial regression (poly_order), cutoff value on the running variable (cutoff), and size of bandwidth around the cutoff (bandwidth).

Usage

regression_discontinuity_designer(N = 1000, tau = 0.15, cutoff = 0.5,
  bandwidth = 0.5, poly_order = 4)

Arguments

N

An integer. Size of population to sample from.

tau

A number. Difference in potential outcomes functions at the threshold.

cutoff

A number in (0,1). Threshold on running variable beyond which units are treated.

bandwidth

A number. Bandwidth around threshold from which to include units.

poly_order

An integer. Order of the polynomial regression used to estimate the jump at the cutoff.

Value

A regression discontinuity design.

Examples

Run this code
# NOT RUN {
# Generate a regression discontinuity design using default arguments:
regression_discontinuity_design <- regression_discontinuity_designer()
# }

Run the code above in your browser using DataLab