You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That is the expected behavior. The operation a*b is equivalent to a + b + a:b which means "main effects plus interactions".
Since you're suppressing the intercept with the explicit 0 the first main effect a does not have any restriction and thus spans the intercept. Then, b gets a restriction because the intercept is already spanned (otherwise there will be redundancies), and the same happens with the interaction term a:b.
An equivalent model, in terms of what gets into the model is 0 + a:b.
A good explanation can be found in Patsy documentation here
Hello,
I'm using a model without intercept with an interaction term between two groups and i think i'm missing an interaction term.
Here a simple example that reproduces the problem:
output:
Where is the interaction term '1, b'?
Is this a bug or am i not getting something here?
Version: 0.5.4
The text was updated successfully, but these errors were encountered: