Altair RISE
A program to recognize and reward our most engaged community members
Nominate Yourself Now!
Home
Discussions
Community Q&A
Change Reference/Baseline in GLM
asav_yu
I am sure there is a super easy way to do this but I can't find it. How can I change the reference level for a categorical variables for my glm?
In python it would be something like this:
https://stackoverflow.com/questions/22431503/specifying-which-category-to-treat-as-the-base-with-statsmodels
EDIT:
Found the solution thanks. Its a matter of defining comparison groups in nominal to numerical operator.
Find more posts tagged with
AI Studio
Accepted answers
All comments
Telcontar120
Correct. Although you actually don't need the comparison group method at all, the GLM implementation can handle the dummy coding approach, which is a bit more popular. So either works fine.
Quick Links
All Categories
Recent Discussions
Activity
Unanswered
日本語 (Japanese)
한국어(Korean)
Groups