Learn R Programming

DesignLibrary (version 2.0.0)

regression_discontinuity_designer: Create a regression discontinuity design with a polynomial fit

Description

Routes to make_design() with id "regression_discontinuity_polynomial": make_design("regression_discontinuity_polynomial", N = N, tau = tau, ...).

Usage

regression_discontinuity_designer(
  N = 1000,
  tau = 0.15,
  outcome_sd = 0.1,
  cutoff = 0.5,
  bandwidth = 0.5,
  control_coefs = c(0.5, 0.5),
  treatment_coefs = c(-5, 1),
  poly_reg_order = 4,
  args_to_fix = NULL
)

Value

A design object.

Arguments

N

Sample size.

tau

Jump in the outcome at the cutoff.

outcome_sd

Standard deviation of the outcome shock.

cutoff

Cutoff on the running variable, in (0, 1).

bandwidth

Largest distance from the cutoff for a unit to be kept.

control_coefs

Polynomial coefficients of the control outcome in the running variable.

treatment_coefs

Polynomial coefficients of the treated outcome in the running variable.

poly_reg_order

Order of the polynomial in the estimator.

args_to_fix

Ignored. Present for compatibility with DesignLibrary 0.1.

Details

Treatment is assigned when a uniform running variable passes cutoff, and each potential outcome is a polynomial in the running variable. Argument names match DesignLibrary 0.1's regression_discontinuity_designer. For the book's local-linear version, see make_design("regression_discontinuity").

See Also

make_design()

Examples

Run this code
regression_discontinuity_designer(N = 500, poly_reg_order = 2)

Run the code above in your browser using DataLab