powered by
This function estimates the IV-like estimands, as well as generates the IV-like specifications.
ivEstimate(formula, data, subset, components, treat, list = FALSE, order = NULL)
formula to be estimated using OLS/IV.
data.frame with which to perform the estimation.
data.frame
subset condition with which to perform the estimate.
vector of variable names whose coefficients we want to include in the set of IV-like estimands.
name of treatment indicator variable.
logical, set to TRUE if this function is being used to loop over a list of formulas.
integer, default set to NULL. This is simply an index of which IV-like specification the estimate corresponds to.
NULL
Returns a list containing the matrices of IV-like specifications for D = 0 and D = 1; and the estimates of the IV-like estimands.
D = 0
D = 1
# NOT RUN { ivEstimate(formula = ey ~ d | z, data = dtm, components = l(d), treat = d, list = FALSE) # }
Run the code above in your browser using DataLab