Auxiliary function that takes in a formula, and extracts the variable names of either the covariates or instruments.
getXZ(fm, inst = FALSE, terms = FALSE)
the formula.
boolean expression, set to TRUE if the instrument names are to be extracted. Otherwise, the covariate names are extracted.
boolean expression, set to TRUE if the terms in the
formula fm
should be returned instead of the variable
names.