Skip to contents

RDD sample-size determination

Usage

morie_rdd_sample_size(
  tau,
  sigma,
  cutoff_density = 1,
  bandwidth = 1,
  power = 0.8,
  kernel = "triangular",
  alpha = 0.05
)

Arguments

tau

Numeric; the treatment-effect size used by power / sample-size calculators.

sigma

Numeric; outcome standard deviation.

cutoff_density

Numeric; running-variable density at the cutoff.

bandwidth

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

power

Numeric in (0, 1); target statistical power.

kernel

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

alpha

Significance level (default 0.05).