I have a problem very similar to :
except that I have other categorical variables besides the interaction term. My formula is :
f = 'VarDep ~ C(MoisAvantDep):C(Groupe) + C(JourSemDep) + C(MoisDep) + jour_nuit'
When I run an ols regression in statsmodels
with this formula, I get main effects for the variable "Groupe", which I would like to avoid.
I tried to add -1 in the formula (as suggested in the above mentioned discussion), but still get the main effects.
Any suggestion ?