Skip to contents

Geographic / boundary RDD on a signed distance

Usage

morie_rdd_geographic(
  data,
  outcome,
  distance_to_boundary,
  side,
  bandwidth = NULL,
  p = 1,
  kernel = "triangular",
  alpha = 0.05
)

Arguments

data

A data.frame holding the outcome, running variable, treatment, and any covariates referenced by name.

outcome

Character; column name of the response variable in data.

distance_to_boundary

Character; column name of the signed distance to the geographic boundary in data.

side

Character; column name encoding the treatment side (e.g. "left"/"right").

bandwidth

Numeric; the local-polynomial bandwidth on each side of the cutoff. NULL invokes the data-driven CCT selector.

p

Integer; local-polynomial order (default 1 for local- linear). 2 picks up quadratic curvature for bias correction.

kernel

One of "triangular" (default), "epanechnikov", "uniform", or "gaussian".

alpha

Significance level (default 0.05).