extract_variables | R Documentation |
extract_variables
takes a formula object for ivreg::ivreg()
, i.e.
in a format of y ~ x1 + x2 | x1 + z2
and extracts the different
elements in a list.
extract_variables(formula)
formula |
A formula for the ivreg::ivreg function, i.e. in format
|
extract_variables
returns a list with three components:
$yvar
stores the name of the dependent variable, $first
the
names of the regressors of the first stage and $second
the names of
the second stage regressors.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.