
Last chance! 50% off unlimited learning
Sale ends in
Computes Regression Discontinuity Design Effects (RDDE) either based on analytic deviations (up to second order with interactions), an empirical score variable, or simulation.
inspect.score(score = NULL, p = NULL, cutoff = NULL,
treat.lower = FALSE, order = 1, interaction = FALSE,
mu = 0, sigma = 1, k1 = -Inf, k2 = Inf,
dists = "normal", sim = FALSE, ndraw = 1000, nsim = 1000)
logical; if TRUE
results are based on simulation.
vector; score variable.
proportion of units in the treatment condition.
decision threshold.
logical; if TRUE
units below cutoff are treated.
integer >= 0; order of polynomial functional form specification for the score variable.
logical; if TRUE
polynomial specification interacts with the treatment variable.
mean of (uncentered) truncated normal - applies when score = NULL
and dists = "normal"
.
standard deviation of (uncentered) truncated normal - applies when score = NULL
and dists = "normal"
.
left truncation point for (uncentered) empirical, truncated normal, or uniform distribution.
right truncation point for (uncentered) empirical, truncated normal, or uniform distribution.
char; type of distribution, "normal"
or "uniform"
.
number of draws - applies when sim = TRUE
.
number of simulations - applies when sim = TRUE
.
list; list of parameters used in the computation.
decision threshold (computed if p
is provided).
if TRUE
units below cutoff are treated.
proportion of subjects treated (computed if cutoff
is provided).
order of polynomial specification for the score variable.
if TRUE
polynomial specification interacts with the treatment variable.
if TRUE
the score variable is centered on the cutoff
regression discontinuity design effect.
# NOT RUN {
# based on an empirical score variable
inspect.score(score = rnorm(10000), cutoff = 0)
# based on analytic derivation
inspect.score(cutoff = 0)
# based on simulation
inspect.score(sim = TRUE, cutoff = 0)
# }
Run the code above in your browser using DataLab