Logistic – Can Polytomous Categorical Independent Variables be Used in Logistic Regression?

categorical datalogisticregression

I found a few similar questions, but none quite had the answer I was looking for.

I aim to use logistic regression and have two IVs ("Independent Variables") that each have three categories. I have only seen IVs in ordinal logistic regression that have been continuous or binary categorical previously. I also cannot convert these IVs to a continuous format, as this will change the interpretability of the variables.

Am I able to include these IVs in their current state, or should I be looking to use another algorithm here? (E.g. decision tree?)

Thanks.

Best Answer

Here's an answer from a different forum about how you might use coding to handle your polytomous variables in regression in general; the original question was about logistic regression here too, so this corroborates other answers here that logistic vs. linear regression isn't an important distinction in the use of coding for polytomous variables. Here's another answer on Cross Validated from @StasK that answers a question just like yours, again suggesting coding.

However, in @GaetanLion's answer to one of those similar questions, some discussion of a drawback of coding appears (mostly interpretive complexity, I think) to emphasize that coding may not be necessary depending on your statistical software. On the other hand, judging from @gung's answer to another very similar question about the interpretive complexity of an analysis like yours, some software may code automatically, and different tests are necessary for estimating the significance of the polytomous factor as a whole (as opposed to particular levels).