l: Listing subsets and components

Description Usage Arguments Value Examples

View source: R/lists.R

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

1
l(...)

Arguments

...

subset conditions or variable names

Value

list.

Examples

1
2
components <- l(d, x1, intercept, factor(x)-2)
subsets <- l(, z %in% c(2, 4))

ivmte documentation built on Sept. 17, 2021, 5:06 p.m.