qed_rdd: qed_rdd: Regression Discontinuity Design

Description Usage Arguments Details Value See Also Examples

View source: R/qed_rdd.R

Description

Estimates a simple Regression Discontinuity Design model with convenient methods for summary and plotting

Usage

1
qed_rdd(y, x, cutoff_criterion, df, transform = TRUE, interaction = TRUE)

Arguments

y

string, name of depedent variable/outcome

x

string, name of independent variable

cutoff_criterion

number, indicates where the discontinuity in x occurs

df

A dataframe or tibble

transform

boolean, whether or not to substract cutoff criterion from x

interaction

boolean, whether or not to include an interaction between treatment and the covariate x

Details

text

Value

an object of type qed_rdd

See Also

lm plot.qed_rdd

Examples

1
2
3
4
5
6
## Not run: 
data(mlda)
fit <- qed_rdd("all", "agecell", 21, mlda)
summary(fit)

## End(Not run)

marginal-latte/QEDinfR documentation built on Dec. 23, 2021, 10:15 p.m.