Error in checkFormula(formula, data, analysis = "lm") :
Some variables missing in data frame.
In addition: Warning message:
In possibleRestrictionsWithMainGeneral(trms, NULL) :
Falling back to slow recursive method of enumerating models due to many factors.
If the following argument is added,
neverExclude = c("^W$", "^S$")
then the code works.
It is likely a problem with the model enumeration fallback method.
The following code:
fails with the error:
If the following argument is added,
then the code works.
It is likely a problem with the model enumeration fallback method.