Panel IV with unit (and optional time) fixed effects via within-transform
Source:R/iv.R
morie_iv_panel.RdPanel IV with unit (and optional time) fixed effects via within-transform
Usage
morie_iv_panel(
data,
outcome,
endogenous,
instruments,
unit,
exogenous = NULL,
time_fe = NULL,
alpha = 0.05
)Arguments
- data
Data frame.
- outcome
Name of the outcome column.
- endogenous
Character vector of endogenous regressor names.
- instruments
Character vector of excluded-instrument names.
- unit
Cluster / unit identifier column.
- exogenous
Optional character vector of exogenous covariate names.
- time_fe
Optional time-FE column.
- alpha
Significance level for confidence intervals.