Suppose you are using R and have data stored in a data frame, M Then I know that
g <- glm(Y ~ ., data=M)
will automatically correspond to the model, where Y are dependent variables, and all other columns of M are predictors. Is there a similarly simple way to additionally include each two-way interaction?
r
Macro Jul 24 2018-12-24T00: 00Z
source share