Skip to content

Question about non-significant interactions

1 message · John Fox

#
Dear Francesco,

I didn't entirely follow your question and I expect that to answer it, it would be necessary to know more about what your research entails. As you imply, this seems to be more a statistics question than an R question. It's also not clear to me what function you used to fit the mixed-effects logistic regression.

But I did notice that you're apparently using Anova() for type-III tests with the default contr.treatment() coding for factors. The main-effect tests that result are not sensible. As it says in ?Anova:

"Warning
Be careful of type-III tests: For a traditional multifactor ANOVA model with interactions, for example, these tests will normally only be sensible when using contrasts that, for different terms, are orthogonal in the row-basis of the model, such as those produced by contr.sum, contr.poly, or contr.helmert, but not by the default contr.treatment. In a model that contains factors, numeric covariates, and interactions, main-effect tests for factors will be for differences over the origin. In contrast (pun intended), type-II tests are invariant with respect to (full-rank) contrast coding. If you don't understand this issue, then you probably shouldn't use Anova for type-III tests."

I hope that this is of some help,
 John
-----------------------------
John Fox, Professor Emeritus
McMaster University
Hamilton, Ontario
Canada L8S 4M4
web: socserv.mcmaster.ca/jfox