Description Usage Arguments Value Examples
This function generates the design matrix given an IV specification.
1 |
formula |
Formula with which to generate the design matrix. |
data |
|
subset |
Condition to select subset of data. |
treat |
The name of the treatment variable. This should only be passed when constructing OLS weights. |
orig.names |
character vector of the terms in the final design
matrix. This is required when the user declares an IV-like
formula where the treatment variable is passed into the
|
Three matrices are returned: one for the outcome variable, Y; one for the second stage covariates, X; and one for the first stage covariates, Z.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.