Regression · Counts & Categorical

Multinomial Logistic Regression

Fit a multinomial (softmax) logistic regression for an outcome with 3-10 categories: per-equation relative risk ratios vs a reference level, LR test of overall fit, McFadden pseudo-R2, and an argma...

In the menus Regression › Counts & Categorical › Multinomial Logistic Regression

Also searched as multinomial nominal logistic regression multinomial logit

When to use it

Predict a categorical outcome with three or more unordered levels (e.g. species, product choice, diagnosis category) from numeric and/or categorical predictors, quantifying each effect as a relative risk ratio versus a reference category. For exactly two levels use logistic regression; for ordered levels prefer ordinal regression.

When not to: The outcome has exactly two levels (use ordinary logistic regression), the outcome categories have a natural order (use ordinal regression instead, which uses the ordering and needs fewer parameters), or the categories plausibly act as close substitutes for each other in a way that would violate independence of irrelevant alternatives.

Step by step

  1. Open it from the menu

    Click Regression in the menu bar; under Counts & Categorical choose Multinomial Logistic Regression.

  2. Fill in the form

    Choose the columns: Category to predict, Columns that may explain it. The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Reference level, Robust standard errors, Max iterations. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Multinomial Logistic Regression form
Category to predict Outcome requiredOne categorical column. Categorical outcome with 3-10 distinct levels.
Columns that may explain it Predictors requiredOne numeric or categorical or ordered categorical column. One or more predictor columns. Categorical predictors are auto-encoded.
Reference levelOutcome level every equation compares against. 'auto' uses the first level in sorted order. Choices populate at runtime from the outcome column; any observed level name is accepted. Default: auto.
Robust standard errorsUse heteroscedasticity-robust (HC0 sandwich) standard errors. Default: off.
Max iterationsMaximum Newton iterations for the maximum-likelihood fit. Default: 200.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

What it assumes

Linearity

If it does not hold: Multinomial logistic regression assumes each predictor's effect is linear on the log-odds scale for every category comparison; a curving true relationship makes the reported relative risk ratio a compromise that misrepresents the effect at the ends of the predictor's range.

How to check: A likelihood-ratio test comparing the fit with and without a squared term for each continuous predictor, reported directly on the card; not applicable when every predictor is categorical or when a numeric predictor takes only two distinct values, and reported as not testable when the augmented model fails to converge.

A worked example

Predicting penguin species (three levels, reference = Adelie) from flipper length and body mass.

Result: Gentoo equation: flipper length RRR = 1.94 per mm (95% CI [1.47, 2.57], p < .001); Chinstrap equation: flipper length RRR = 1.19 per mm (95% CI [1.12, 1.27], p < .001), with body mass held fixed. McFadden's R-squared = 0.63; classification accuracy = 81.6% versus a no-information rate of 44.2%.

At a fixed body mass, each extra millimeter of flipper roughly doubles the relative risk of Gentoo versus Adelie and raises that of Chinstrap versus Adelie by about 19%. The 81.6% accuracy is well above the 44.2% no-information rate, so the model adds real information, but these two size measurements alone leave many Adelie and Chinstrap birds confused; bill measurements would be needed to separate them.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • Do flipper length and body mass predict which of the three penguin species a bird belongs to?
  • Explain the multinomial logistic regression in plain words.
  • What does odds ratio mean?

Last reviewed November 16, 2026.

Report an unclear step