|
|
|
|
|
by plouffy
1933 days ago
|
|
You could argue that a hierarchical model is already multiple models. If each department has a dummy variable then they wouldn't share the same intersect. The only difference is how you interpret that intercept. The department intercept would now not be the salary of an individual with 0 experience, but the difference between the salary of an individual with 0 experience in a department compared to the all other employees with 0 experience. |
|
You wouldn't actually add salary as an interaction, as it is salary you are trying to predict. You'd use an interaction between experience and department to predict salary, as you correctly point out.
But usually when doing interactions, you don't apply it to the bias term, so you will get this:
And this is essentially a model for each department, but all models share the bias term, b0.If you also interact the bias term with the dummy variable for department, you will in effect have completely independent models,
But I don't think that is what is normally done when applying interactions between features.Anyway, I think we both agree, once we get our terminology aligned.