l {ivmte} | R Documentation |
Listing subsets and components
Description
This function allows the user to declare a list of variable names
in non-character form and subsetting conditions. This is used to
ensure clean entry of arguments into the components
and
subset
arguments of the function. When selecting components
to include in the S set, selecting the intercept term and factor
variables requires special treatment. To select the intercept term,
include in the vector of variable names, ‘intercept’. If the the
factorized counterpart of a variable x = 1, 2, 3
is included
in the IV-like specifications via factor(x)
, the user can
select the coefficients for specific factors by declaring the
components factor(x)-1, factor(x)-2, factor(x)-3
.
Usage
l(...)
Arguments
... |
subset conditions or variable names |
Value
list.
Examples
components <- l(d, x1, intercept, factor(x)-2)
subsets <- l(, z %in% c(2, 4))
[Package ivmte version 1.4.0 Index]