How to asses interaction in a Poisson Generalized Linear Model?
4 views (last 30 days)
Show older comments
Hi all,
I am running a poisson Generalized linear model using fitglm, but I am still having issues interpreting the interactions. In particular, I am trying to asses the interaction terms using the plotInteraction function but then I get an error:
Undefined function or variable 'plotInteraction'.
I am having more than one interactions the response I am looking at is quite complex so I would like to categorize my data based on the different interactions I am looking at. When I am running the example with the linear regression, things run smoothly. Is it because the function doesn't support inputs from a Generalized Linear model?
Best,
Konstantinos
3 Comments
Adam Danz
on 4 Mar 2021
plotInteraction is a method defined in the LinearModel & CompactLinearModel classes. fitglm produces a GeneralizedLinearModel object which is why it's not accepted/recognized in plotInteraction.
Answers (0)
See Also
Categories
Find more on Generalized Additive Model in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!