inspect.score {cosa} | R Documentation |
Computes Regression Discontinuity Design Effects
Description
Computes Regression Discontinuity Design Effects (RDDE) either based on analytic deviations (up to second order with interactions), an empirical score variable, or simulation.
Usage
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)
Arguments
sim |
logical; if |
score |
vector; score variable. |
p |
proportion of units in the treatment condition. |
cutoff |
decision threshold. |
treat.lower |
logical; if |
order |
integer >= 0; order of polynomial functional form specification for the score variable. |
interaction |
logical; if |
mu |
mean of (uncentered) truncated normal - applies when |
sigma |
standard deviation of (uncentered) truncated normal - applies when |
k1 |
left truncation point for (uncentered) empirical, truncated normal, or uniform distribution. |
k2 |
right truncation point for (uncentered) empirical, truncated normal, or uniform distribution. |
dists |
char; type of distribution, |
ndraw |
number of draws - applies when |
nsim |
number of simulations - applies when |
Value
parms |
list; list of parameters used in the computation. |
cutoff |
decision threshold (computed if |
treat.lower |
if |
p |
proportion of subjects treated (computed if |
order |
order of polynomial specification for the score variable. |
interaction |
if |
center |
if |
rdde |
regression discontinuity design effect. |
Examples
# 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)