factory_indicators {ivgets} | R Documentation |
factory_indicators
creates a function that takes the name of an
indicator and returns the corresponding indicator to be used in a regression.
For user-specified indicators, it extracts the corresponding column from the
uis matrix.
factory_indicators(n)
n |
An integer specifying the length of the indicators. |
Argument n
should equal the number of observations in the
data set which will be augmented with the indicators.
The created function takes a name of an indicator and the original uis argument that was used in indicator saturation and returns the indicator.
factory_indicators
returns a function called creator()
.