ivEstimate {ivmte} | R Documentation |
Obtaining IV-like specifications
Description
This function estimates the IV-like estimands, as well as generates the weights associated with the IV-like specifications.
Usage
ivEstimate(
formula,
data,
subset,
components,
treat,
list = FALSE,
order = NULL
)
Arguments
formula |
formula to be estimated using OLS/IV. |
data |
|
subset |
subset condition with which to perform the estimate. |
components |
vector of variable names whose coefficients we want to include in the set of IV-like estimands. |
treat |
name of treatment indicator variable. |
list |
logical, set to TRUE if this function is being used to loop over a list of formulas. |
order |
integer, default set to |
Value
Returns a list containing the matrices of IV-like
specifications for D = 0
and D = 1
; and the
estimates of the IV-like estimands.
Examples
dtm <- ivmte:::gendistMosquito()
ivEstimate(formula = ey ~ d | z,
data = dtm,
components = l(d),
treat = d,
list = FALSE)
[Package ivmte version 1.4.0 Index]