Grid-based Anderson-Rubin confidence interval for a single endogenous variable.
Source:R/iv.R
morie_iv_anderson_rubin_ci.RdGrid-based Anderson-Rubin confidence interval for a single endogenous variable.
Usage
morie_iv_anderson_rubin_ci(
data,
outcome,
endogenous,
instruments,
exogenous = NULL,
grid_min = -10,
grid_max = 10,
grid_n = 200,
alpha = 0.05
)Arguments
- data
A
data.frame(or tibble) holding the outcome, endogenous regressors, instruments, and any exogenous controls.- outcome
Character; column name of the response variable.
- endogenous
Character vector; column names of the endogenous regressors.
- instruments
Character vector; column names of the instrumental variables.
- exogenous
Optional character vector of additional exogenous regressors included in both the structural equation and the first stage.
NULL(default) for a just-identified design.- grid_min
Numeric; lower bound of the AR confidence-set grid search over candidate
beta0values.- grid_max
Numeric; upper bound of the AR confidence-set grid.
- grid_n
Integer; number of grid points used in
morie_iv_anderson_rubin_ci(default 100).- alpha
Significance level (default
0.05); controls the confidence-set / acceptance-region cut-off.