Description Usage Arguments Value Author(s)
Creates an treatment on the treated model with the ivreg function from the AER package.
1 2 |
y |
Character vector of length = 1 that is the column name of the outcome variable. |
iv |
Character vector of length = 1 that is the column name of the insrumental variable (e.g. treatment assignment). |
tr |
Character vector of length = 1 that is the column name of the treatment received variable. |
x |
Character vector of any length that contains the column names of the covariates. |
data |
The data frame containing the variables referenced by the previous arguments. |
An object of class 'ivreg' containing elements of model objects similar to the lm() function.
William Murrah
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.