Replies: 2 comments
-
Hi @jankaWIS, thanks opening the question. I migrated it from Issue to Discussions as this is a better place for questions like this. I'll try to answer your questions.
It depends on how the interaction coefficients are implemented. In this case, we have three slopes, one for each program, and we have three parameters. But those three parameters are not the slopes for the programs. They're coded like this
In other words, Bambi is using pivoting (or reference enconding). There's a baseline or reference slope ( When would be see an interaction? When any of And in this plot, comparing each curve from panel to panel, they would be different, but they're not
You just write it as
I'll try to find an example to show this |
Beta Was this translation helpful? Give feedback.
-
Hi @tomicapretto, Thank you for your answer, it's very helpful.
If I understand you correctly, what you are proposing as proof for no interaction/interaction is to run two models, one with the term and one without and then compare the models and the results. Is that so?
Thank you, I very much appreciate it! |
Beta Was this translation helpful? Give feedback.
-
Hi,
First of all, thank you for your excellent example gallery on your website. I have not found a place where to ask questions about it and in one of them, you write to open an issue if there's something to add or explain better. So I hope this is the right way to ask.
I was going through this tutorial about Negative binomial regression where you present two models, one with and one without interaction between the two main effects. Eventually, it turns out that the interaction is not significant. But I would like to ask how it would look like if the interaction was significant and how to test for that.
And a follow-up question would be if the interaction was between two categorical variables. The example is between Program (3 levels: Academic, General, Vocational) and Math (score on a math test). But what if you had another three levels of a categorical variable, let's say a number of siblings given in three levels as 0, 1, or more than 1? How would you model such an interaction? And let's say that the effect of the number of siblings would be different between the different programs (as maybe parents can't afford to put their kids to better programs if they have more kids). How would you check that maybe there is an interaction between some of the programs and the number of siblings but not in other(s)?
Thank you in advance for your help.
Beta Was this translation helpful? Give feedback.
All reactions