Tutorials › Biostatistics › Multinomial Logistic Regression Explained

Multinomial Regression

Multinomial Logistic Regression Explained

A practical guide to multinomial logistic regression for clinical research, covering nominal outcomes with more than two categories, baseline-category logits, coefficient and odds-ratio interpretation, global tests, predicted probabilities, a complete worked clinical example, and implementation in R and SAS.

Intermediate 18 min read

What You'll Learn

  • When multinomial logistic regression is appropriate for clinical outcomes
  • How baseline-category logits generalize ordinary binary logistic regression
  • How coefficients and odds ratios are interpreted for each outcome category
  • How to calculate predicted probabilities for individual patients
  • How to assess overall predictor effects and model assumptions
  • How to implement and report multinomial logistic regression in R and SAS

Introduction

Many clinical outcomes have more than two possible categories. A patient might experience a complete response, partial response, stable disease, or progressive disease. A toxicity might be classified as mild, moderate, severe, or life-threatening. A treatment disposition might be continuation, discontinuation for toxicity, discontinuation for lack of efficacy, or another reason.

When the outcome has exactly two categories, ordinary binary logistic regression is often appropriate. But what happens when the outcome has three or more categories?

One important approach is multinomial logistic regression.

Key idea: Multinomial logistic regression extends binary logistic regression to an outcome with more than two categories when those categories are treated as nominal rather than inherently ordered. The model estimates the relative odds of each non-reference category versus a selected reference category.

What Makes an Outcome Multinomial?

Suppose a clinical endpoint has three possible categories:

Outcome Example
1 Complete response
2 Partial response
3 No response

Each patient belongs to exactly one category. The outcome is therefore categorical, but it is not necessarily appropriate to treat the categories as numerical values such as 1, 2, and 3.

The crucial question is whether the categories have a meaningful ordering.

Outcome Structure Potential Model
Two categories Binary logistic regression
Three or more unordered categories Multinomial logistic regression
Three or more ordered categories Ordinal logistic regression may be appropriate
Do not confuse multinomial with ordinal regression. If outcome categories have a scientifically meaningful ordering, such as mild → moderate → severe toxicity, an ordinal model may be more efficient because it explicitly uses that ordering. Multinomial logistic regression does not require an ordering.

A Clinical Example

Suppose a Phase III clinical trial evaluates whether treatment assignment and baseline disease severity are associated with a patient's best overall tumor response.

The outcome is classified as:

  • Complete response (CR)
  • Partial response (PR)
  • Stable disease (SD)
  • Progressive disease (PD)

For this example, assume the investigators want to model the probability of these four categories without imposing a proportional-odds assumption.

The outcome has:

$$ K=4 $$

categories. One category must be selected as the reference category. Suppose progressive disease is the reference.

The Basic Model

Let:

  • \(Y\) = tumor response category
  • \(Y=1\) = complete response
  • \(Y=2\) = partial response
  • \(Y=3\) = stable disease
  • \(Y=4\) = progressive disease, the reference category

For each non-reference category, multinomial logistic regression models the log odds relative to the reference outcome.

The three equations are:

$$ \log\left(\frac{P(Y=\mathrm{CR})}{P(Y=\mathrm{PD})}\right) = \beta_{0,\mathrm{CR}} + \beta_{1,\mathrm{CR}}X_1 +\cdots+ \beta_{p,\mathrm{CR}}X_p $$ $$ \log\left(\frac{P(Y=\mathrm{PR})}{P(Y=\mathrm{PD})}\right) = \beta_{0,\mathrm{PR}} + \beta_{1,\mathrm{PR}}X_1 +\cdots+ \beta_{p,\mathrm{PR}}X_p $$ $$ \log\left(\frac{P(Y=\mathrm{SD})}{P(Y=\mathrm{PD})}\right) = \beta_{0,\mathrm{SD}} + \beta_{1,\mathrm{SD}}X_1 +\cdots+ \beta_{p,\mathrm{SD}}X_p $$

This is the central mathematical structure of multinomial logistic regression.

Notice what changed from binary logistic regression: With two outcome categories, there is only one logit. With four outcome categories, there are three logits when one category is used as the reference. In general, a multinomial outcome with \(K\) categories produces \(K-1\) equations.

How Many Equations Are Needed?

If the outcome has \(K\) categories, select one reference category. The remaining \(K-1\) categories each receive a separate logit.

$$ \text{Number of logits}=K-1 $$
Number of Outcome Categories Number of Logits
2 1
3 2
4 3
5 4

This is why multinomial logistic regression is sometimes described as a set of simultaneous logistic regressions. That description is useful intuitively, although the equations are estimated jointly as one multinomial model rather than as unrelated independent binary regressions.

The Reference Category

The reference category is fundamental to interpretation. Suppose progressive disease is the reference. Then every odds ratio answers a question of the form:

$$ \frac{\text{odds of category }j} {\text{odds of progressive disease}} $$

For example:

$$ \frac{P(\mathrm{CR})}{P(\mathrm{PD})} $$

or:

$$ \frac{P(\mathrm{PR})}{P(\mathrm{PD})} $$

Changing the reference category changes the coefficients and odds ratios, although it does not change the underlying fitted probabilities of the multinomial model.

Important interpretation rule: An odds ratio from a multinomial model is always relative to both a specific outcome reference category and, when applicable, a specific predictor comparison.

Adding Treatment as a Predictor

Suppose:

$$ X= \begin{cases} 0,&\text{Control}\\ 1,&\text{Experimental treatment} \end{cases} $$

For the complete-response versus progressive-disease logit:

$$ \log\left( \frac{P(\mathrm{CR})}{P(\mathrm{PD})} \right) = \beta_{0,\mathrm{CR}} + \beta_{1,\mathrm{CR}}X $$

The treatment coefficient is:

$$ \beta_{1,\mathrm{CR}} $$

Exponentiating it gives:

$$ OR_{\mathrm{CR:PD}} = e^{\beta_{1,\mathrm{CR}}} $$

This is the ratio of the odds of complete response versus progressive disease for treatment compared with control.

Interpreting a Multinomial Odds Ratio

Suppose the fitted model produces:

$$ \hat{\beta}_{1,\mathrm{CR}}=1.10 $$

Then:

$$ OR=e^{1.10}\approx3.00 $$

The interpretation is: patients receiving experimental treatment have approximately three times the odds of complete response versus progressive disease compared with patients receiving control, assuming other variables in the model are held constant.

This does not mean that treatment triples the probability of complete response.

Odds are not probabilities. An odds ratio of 3 does not imply that the probability of complete response is three times as large. Predicted probabilities must be calculated separately from the fitted model.

A Worked Clinical Example

Consider 600 patients randomized to an experimental treatment or control. The primary categorical outcome is best overall response:

Response Code Role
Complete response CR Modeled category
Partial response PR Modeled category
Stable disease SD Modeled category
Progressive disease PD Reference

Suppose the model adjusts for:

  • Treatment group
  • Baseline disease severity
  • Age

The fitted treatment effects are:

Comparison Treatment Coefficient Odds Ratio
CR vs PD 1.10 3.00
PR vs PD 0.69 1.99
SD vs PD 0.22 1.25

The treatment appears to have the strongest relative association with complete response versus progressive disease.

Interpreting Each Equation

Complete Response vs Progressive Disease

An odds ratio of 3.00 means:

For patients with otherwise equivalent covariate values, the odds of complete response rather than progressive disease are estimated to be three times higher under experimental treatment than under control.

Partial Response vs Progressive Disease

An odds ratio of 1.99 means:

The odds of partial response rather than progressive disease are estimated to be approximately twice as high under experimental treatment.

Stable Disease vs Progressive Disease

An odds ratio of 1.25 means:

The odds of stable disease rather than progressive disease are estimated to be 25% higher under experimental treatment.

The three effects need not be equal.

This is an important advantage of the multinomial model. The treatment may have a different association with each response category relative to the reference category.

Why You Should Not Run Three Separate Binary Logistic Models

A tempting approach would be to create three separate binary outcomes:

  • CR versus everything else
  • PR versus everything else
  • SD versus everything else

and fit three logistic regressions.

That is generally not equivalent to multinomial logistic regression.

The multinomial model treats the outcome as a single multicategory random variable whose category probabilities must sum to one.

$$ \sum_{j=1}^{K}P(Y=j)=1 $$

Separate binary models do not automatically respect this joint probability structure.

Better approach: If the scientific question concerns a single nominal outcome with multiple mutually exclusive categories, model the multicategory outcome directly using a multinomial model.

From Logits to Probabilities

The model is estimated on the log-odds scale, but clinicians often want predicted probabilities. Suppose there are four categories and PD is the reference. Define:

$$ \eta_{\mathrm{CR}} = \beta_{0,\mathrm{CR}}+\boldsymbol{\beta}_{\mathrm{CR}}^\top\mathbf{x} $$ $$ \eta_{\mathrm{PR}} = \beta_{0,\mathrm{PR}}+\boldsymbol{\beta}_{\mathrm{PR}}^\top\mathbf{x} $$ $$ \eta_{\mathrm{SD}} = \beta_{0,\mathrm{SD}}+\boldsymbol{\beta}_{\mathrm{SD}}^\top\mathbf{x} $$

The probability of progressive disease is:

$$ P(\mathrm{PD}) = \frac{1} {1+\exp(\eta_{\mathrm{CR}}) +\exp(\eta_{\mathrm{PR}}) +\exp(\eta_{\mathrm{SD}})} $$

The other probabilities are:

$$ P(\mathrm{CR}) = \frac{\exp(\eta_{\mathrm{CR}})} {1+\exp(\eta_{\mathrm{CR}}) +\exp(\eta_{\mathrm{PR}}) +\exp(\eta_{\mathrm{SD}})} $$ $$ P(\mathrm{PR}) = \frac{\exp(\eta_{\mathrm{PR}})} {1+\exp(\eta_{\mathrm{CR}}) +\exp(\eta_{\mathrm{PR}}) +\exp(\eta_{\mathrm{SD}})} $$ $$ P(\mathrm{SD}) = \frac{\exp(\eta_{\mathrm{SD}})} {1+\exp(\eta_{\mathrm{CR}}) +\exp(\eta_{\mathrm{PR}}) +\exp(\eta_{\mathrm{SD}})} $$

These probabilities necessarily sum to one.

Example of Predicted Probabilities

Suppose a particular patient has fitted linear predictors:

$$ \eta_{\mathrm{CR}}=0.80 $$ $$ \eta_{\mathrm{PR}}=0.40 $$ $$ \eta_{\mathrm{SD}}=0.10 $$

The denominator is:

$$ D= 1+e^{0.80}+e^{0.40}+e^{0.10} $$

Approximately:

$$ D \approx 1+2.226+1.492+1.105 = 5.823 $$

Therefore:

$$ P(\mathrm{CR}) \approx \frac{2.226}{5.823} = 0.382 $$ $$ P(\mathrm{PR}) \approx \frac{1.492}{5.823} = 0.256 $$ $$ P(\mathrm{SD}) \approx \frac{1.105}{5.823} = 0.190 $$ $$ P(\mathrm{PD}) \approx \frac{1}{5.823} = 0.172 $$

Thus, the model predicts approximately:

Outcome Predicted Probability
Complete response 38.2%
Partial response 25.6%
Stable disease 19.0%
Progressive disease 17.2%
Total 100.0%

Odds Ratios Versus Predicted Probabilities

These two quantities answer different questions.

Quantity Question Answered
Coefficient How does a predictor change the log relative odds?
Odds ratio How does a predictor multiply the relative odds?
Predicted probability What probability does the model assign to each outcome category?

For clinical communication, predicted probabilities are often easier to understand than odds ratios. However, odds ratios remain useful for inference and formal reporting of covariate associations.

Continuous Predictors

Suppose age is included as a continuous predictor. For the CR versus PD comparison:

$$ \log\left( \frac{P(\mathrm{CR})}{P(\mathrm{PD})} \right) = \beta_{0,\mathrm{CR}} + \beta_{1,\mathrm{CR}}\mathrm{Age} $$

If:

$$ \beta_{1,\mathrm{CR}}=-0.03 $$

then the odds ratio for a one-year increase in age is:

$$ OR=e^{-0.03}\approx0.971 $$

Thus, each one-year increase in age is associated with an estimated 2.9% decrease in the odds of CR versus PD, assuming the linearity assumption on the logit scale is reasonable.

Using a Clinically Meaningful Increment

A one-year change may not always be clinically meaningful. Suppose the age coefficient is \(-0.03\), but investigators want the effect per 10-year increase.

Then:

$$ OR_{10\text{ years}} = e^{10(-0.03)} = e^{-0.30} \approx0.741 $$

This means that a 10-year increase in age is associated with approximately a 26% lower odds of CR versus PD.

Reporting tip: For continuous predictors, choose increments that have clinical meaning. The odds ratio per 1 mg/dL, 1 year, or 1 unit may be statistically correct but not necessarily the clearest clinical summary.

Categorical Predictors

Suppose baseline disease severity has three categories:

Severity Reference?
Mild Yes
Moderate No
Severe No

Two indicator variables can be created:

$$ I_{\mathrm{Moderate}} = \begin{cases} 1,&\text{moderate}\\ 0,&\text{otherwise} \end{cases} $$ $$ I_{\mathrm{Severe}} = \begin{cases} 1,&\text{severe}\\ 0,&\text{otherwise} \end{cases} $$

Each indicator receives a coefficient for each non-reference outcome category.

This means the model can become fairly large. For \(K\) outcome categories and a categorical predictor with \(C\) levels, there can be:

$$ (K-1)(C-1) $$

coefficients for that predictor, assuming the predictor uses \(C-1\) indicator variables.

The Number of Parameters Can Grow Quickly

Suppose the outcome has five categories and the model contains a four-level categorical predictor. Then that predictor alone requires:

$$ (5-1)(4-1)=12 $$

regression coefficients.

Clinical implication: Multinomial models can require considerably more information than ordinary binary logistic regression. Rare outcome categories and sparse covariate combinations can lead to unstable estimates.

Global Tests of a Predictor

Suppose treatment appears in all three equations. There are three treatment coefficients:

$$ \beta_{\mathrm{CR}}, \qquad \beta_{\mathrm{PR}}, \qquad \beta_{\mathrm{SD}} $$

A separate p-value for each coefficient answers a specific comparison. But investigators may also ask a broader question: Does treatment have any overall association with the multinomial outcome?

A global test can assess the joint null hypothesis:

$$ H_0: \beta_{\mathrm{CR}} = \beta_{\mathrm{PR}} = \beta_{\mathrm{SD}} = 0 $$

against the alternative that at least one is nonzero.

Likelihood Ratio Tests

One common approach is a likelihood ratio test. Compare:

  • A full model containing the predictor.
  • A reduced model without the predictor.

The likelihood ratio statistic is:

$$ G^2 = -2\left[ \log L_{\mathrm{reduced}} - \log L_{\mathrm{full}} \right] $$

Under standard regularity conditions, the statistic is approximately chi-square distributed.

If the predictor has \(q\) associated coefficients, the degrees of freedom for the global test are generally:

$$ df=q $$

For example, a binary treatment variable in a four-category multinomial outcome produces three treatment coefficients and therefore a three-degree-of- freedom global test.

Global versus individual tests: A global p-value asks whether the predictor contributes anywhere in the multinomial outcome structure. Individual p-values ask whether a specific category-versus-reference comparison is associated with the predictor. Both can be informative.

Confidence Intervals for Odds Ratios

Suppose:

$$ \hat{\beta}=0.69 $$

with standard error:

$$ SE(\hat{\beta})=0.25 $$

An approximate 95% confidence interval on the coefficient scale is:

$$ 0.69 \pm 1.96(0.25) $$

giving approximately:

$$ (0.20,\;1.18) $$

Exponentiating gives the odds-ratio interval:

$$ (e^{0.20},e^{1.18}) \approx (1.22,\;3.25) $$

Thus, the estimated odds ratio is approximately 2.00 with a 95% confidence interval of approximately 1.22 to 3.25.

What Does an Odds Ratio of 1 Mean?

For a particular category-versus-reference comparison:

$$ OR=1 $$

means the predictor does not change the relative odds between those two outcome categories.

For example:

$$ OR_{\mathrm{PR:PD}}=1 $$

means the odds of partial response versus progressive disease are the same between the predictor groups, conditional on the other model variables.

What Does an Odds Ratio Below 1 Mean?

Suppose:

$$ OR_{\mathrm{SD:PD}}=0.60 $$

This means the predictor is associated with a 40% lower odds of stable disease versus progressive disease:

$$ 1-0.60=0.40 $$

or 40%.

Again, this is a statement about relative odds, not an absolute probability reduction.

Reference Category Changes Interpretation

Suppose progressive disease is initially the reference. The model reports:

$$ OR_{\mathrm{CR:PD}}=3.0 $$

If the reference is changed to complete response, the model can instead report the comparison:

$$ OR_{\mathrm{PD:CR}} = \frac{1}{3.0} = 0.333 $$

The underlying information is the same.

Practical point: Changing the reference category does not create a new scientific result. It changes the way the relative comparisons are expressed. Choose a reference category that makes the clinical interpretation intuitive.

Baseline-Category Logit Model

The formulation used above is commonly called the baseline-category logit model. For \(K\) outcome categories and reference category \(K\):

$$ \log \left( \frac{P(Y=j)}{P(Y=K)} \right) = \mathbf{x}^{T}\boldsymbol{\beta}_j, \qquad j=1,\ldots,K-1 $$

Each category \(j\) has its own coefficient vector.

This means:

  • Each non-reference category has its own intercept.
  • Each predictor can have a different coefficient for each category.
  • The model does not assume that the predictor has the same effect across categories.

The Independence of Irrelevant Alternatives Assumption

A traditional multinomial logit model is associated with the independence of irrelevant alternatives, or IIA, assumption. Conceptually, IIA means that the relative odds between two outcome categories do not depend on the presence or characteristics of another alternative.

For example, consider:

  • Treatment A
  • Treatment B
  • Placebo

If B is added or removed, the ratio of the odds of A versus placebo is assumed not to change simply because B exists as another alternative.

Whether IIA is scientifically plausible depends heavily on the application.

Clinical caution: The IIA assumption is particularly important in choice-type applications, where outcome categories represent competing alternatives. It is less useful to think of the assumption as a universal diagnostic box that must mechanically be checked for every clinical endpoint. The scientific meaning of the outcome categories should drive model selection.

Multinomial vs. Ordinal Logistic Regression

This distinction is especially important in clinical research. Suppose toxicity is categorized as:

$$ \text{Grade 1}<\text{Grade 2}<\text{Grade 3}<\text{Grade 4} $$

These categories have a natural order. An ordinal logistic model may therefore be appropriate.

Now consider best response:

  • Complete response
  • Partial response
  • Stable disease
  • Progressive disease

Although clinicians may perceive an ordering, the scientific relationship is not necessarily equivalent to a simple ordinal scale. The decision to use an ordinal model should therefore be based on the endpoint's measurement structure and assumptions, not merely on whether one category seems "better" than another.

Question Multinomial Ordinal
Requires ordered categories? No Yes
Uses category ordering? No Yes
Separate effects for outcome categories? Generally yes More constrained
Potentially more parameters? Yes Usually fewer
Proportional-odds assumption? No Often central to the standard model

The Proportional-Odds Assumption Is Not a Multinomial Assumption

A common mistake is to ask whether a multinomial model satisfies the proportional-odds assumption. It does not. The proportional-odds assumption belongs to the standard ordinal logistic model.

A multinomial baseline-category model instead allows different regression coefficients for different category-versus-reference logits.

Worked Example: Adding Treatment and Age

Suppose the fitted model for CR versus PD is:

$$ \log \left( \frac{P(\mathrm{CR})}{P(\mathrm{PD})} \right) = -1.80 + 1.10(\mathrm{Treatment}) - 0.03(\mathrm{Age}) $$

The PR versus PD model is:

$$ \log \left( \frac{P(\mathrm{PR})}{P(\mathrm{PD})} \right) = -0.90 + 0.69(\mathrm{Treatment}) - 0.02(\mathrm{Age}) $$

The SD versus PD model is:

$$ \log \left( \frac{P(\mathrm{SD})}{P(\mathrm{PD})} \right) = -0.30 + 0.22(\mathrm{Treatment}) + 0.01(\mathrm{Age}) $$

Notice that age has different coefficients in the three equations.

That is perfectly permissible.

Key point: There is no requirement that a predictor have the same effect for CR vs PD, PR vs PD, and SD vs PD. The data may support substantially different relationships.

Calculate the Odds Ratios

For treatment:

$$ OR_{\mathrm{CR:PD}} = e^{1.10} \approx3.00 $$ $$ OR_{\mathrm{PR:PD}} = e^{0.69} \approx1.99 $$ $$ OR_{\mathrm{SD:PD}} = e^{0.22} \approx1.25 $$

For age:

$$ OR_{\mathrm{CR:PD}} = e^{-0.03} \approx0.971 $$ $$ OR_{\mathrm{PR:PD}} = e^{-0.02} \approx0.980 $$ $$ OR_{\mathrm{SD:PD}} = e^{0.01} \approx1.010 $$

Thus age has a negative association with CR versus PD and PR versus PD, but a small positive association with SD versus PD in this hypothetical model.

Predicting a Patient's Outcome

Consider a 60-year-old patient receiving experimental treatment. Then:

$$ \mathrm{Treatment}=1 $$ $$ \mathrm{Age}=60 $$

For CR versus PD:

$$ \eta_{\mathrm{CR}} = -1.80+1.10-0.03(60) = -2.50 $$

For PR versus PD:

$$ \eta_{\mathrm{PR}} = -0.90+0.69-0.02(60) = -1.41 $$

For SD versus PD:

$$ \eta_{\mathrm{SD}} = -0.30+0.22+0.01(60) = 0.52 $$

Exponentiating:

$$ e^{-2.50}\approx0.0821 $$ $$ e^{-1.41}\approx0.244 $$ $$ e^{0.52}\approx1.682 $$

The denominator is:

$$ D = 1+0.0821+0.244+1.682 \approx3.008 $$

Therefore:

$$ P(\mathrm{CR}) \approx \frac{0.0821}{3.008} \approx0.027 $$ $$ P(\mathrm{PR}) \approx \frac{0.244}{3.008} \approx0.081 $$ $$ P(\mathrm{SD}) \approx \frac{1.682}{3.008} \approx0.559 $$ $$ P(\mathrm{PD}) \approx \frac{1}{3.008} \approx0.332 $$

The predicted probabilities are therefore approximately:

Outcome Predicted Probability
Complete response 2.7%
Partial response 8.1%
Stable disease 55.9%
Progressive disease 33.2%

The most likely predicted category for this patient is stable disease.

Notice the difference: The treatment odds ratios describe relative category comparisons. The predicted probabilities combine all model coefficients to produce a complete probability distribution for the individual patient.

Model Fitting in R

A commonly used R implementation is the nnet package.

library(nnet)

fit <- multinom(
  response ~ treatment + age + severity,
  data = clinical_data
)

summary(fit)

The outcome should be a factor, with the desired reference category specified appropriately.

clinical_data$response <-
  relevel(
    factor(clinical_data$response),
    ref = "PD"
  )

fit <- multinom(
  response ~ treatment + age + severity,
  data = clinical_data
)

Obtaining Odds Ratios in R

coef_table <- summary(fit)$coefficients

odds_ratios <- exp(coef_table)

odds_ratios

The exponentiated coefficients give the multinomial odds ratios.

Confidence Intervals in R

fit_summary <- summary(fit)

beta <- fit_summary$coefficients
se   <- fit_summary$standard.errors

lower <- exp(beta - 1.96 * se)
upper <- exp(beta + 1.96 * se)

data.frame(
  OR = exp(beta),
  Lower95 = lower,
  Upper95 = upper
)

Predicted Probabilities in R

The predict() function can return predicted class probabilities.

predicted_probabilities <-
  predict(
    fit,
    newdata = new_patient,
    type = "probs"
  )

predicted_probabilities

The resulting object contains the predicted probability of each outcome category for the specified patient.

Predicting the Most Likely Category

predicted_class <-
  predict(
    fit,
    newdata = new_patient,
    type = "class"
  )

predicted_class

This returns the category with the highest model-predicted probability.

Do not overinterpret the predicted class. A predicted class only tells you which category has the largest predicted probability. It does not mean that the model predicts that category with certainty. A patient might have predicted probabilities of 0.35, 0.30, 0.20, and 0.15. The most likely category is the first one, but substantial uncertainty remains.

Global Tests in R

A convenient approach is to compare a full and reduced model.

fit_full <- multinom(
  response ~ treatment + age + severity,
  data = clinical_data
)

fit_reduced <- multinom(
  response ~ age + severity,
  data = clinical_data
)

anova(
  fit_reduced,
  fit_full,
  test = "Chisq"
)

This evaluates whether adding treatment significantly improves the model's likelihood.

SAS Implementation

In SAS, multinomial logistic regression can be fit using PROC LOGISTIC with a generalized logit link.

proc logistic data=clinical_data;

    class treatment(ref="Control")
          severity(ref="Mild") / param=ref;

    model response(ref="PD") =
          treatment
          age
          severity
          / link=glogit;

run;

The LINK=GLOGIT option specifies the generalized logit model.

The response(ref="PD") specification identifies progressive disease as the reference category.

Obtaining Odds Ratios in SAS

SAS can produce odds ratios using the ODDSRATIO statement.

proc logistic data=clinical_data;

    class treatment(ref="Control")
          severity(ref="Mild") / param=ref;

    model response(ref="PD") =
          treatment
          age
          severity
          / link=glogit;

    oddsratio treatment;
    oddsratio age;

run;

The resulting output should be interpreted with careful attention to which outcome category is being compared with the reference.

Important SAS Output Consideration

For generalized logit models, SAS output may contain multiple sets of parameter estimates because each non-reference outcome category has its own equation.

For example, with PD as the reference:

Equation Meaning
CR CR vs PD
PR PR vs PD
SD SD vs PD

The same predictor can therefore appear multiple times, once for each non-reference category.

Testing the Treatment Effect

Suppose the treatment effects are:

Comparison OR 95% CI p-value
CR vs PD 3.00 1.55–5.82 0.001
PR vs PD 1.99 1.25–3.17 0.004
SD vs PD 1.25 0.88–1.77 0.21

The results suggest that experimental treatment is associated with higher relative odds of CR versus PD and PR versus PD, while the evidence for SD versus PD is weaker.

However, these are three related comparisons. If the scientific question is whether treatment has an overall effect on the four-category response outcome, a global test should also be reported.

Multiple Comparisons

A multinomial model naturally generates multiple coefficients. With four outcome categories, there are three category-versus-reference comparisons for each binary predictor.

If many predictors and interactions are also tested, the number of hypothesis tests can become large.

Investigators should therefore distinguish between:

  • The prespecified primary hypothesis
  • Global predictor tests
  • Individual category-specific comparisons
  • Exploratory analyses

Multiplicity considerations should be incorporated into the statistical analysis plan when multiple formal inferences are being made.

Interactions

Multinomial logistic regression can also include interactions. Suppose treatment effect may differ by baseline severity. The model can include:

$$ \mathrm{Treatment} \times \mathrm{Severity} $$

For example:

fit <- multinom(
  response ~ treatment * severity + age,
  data = clinical_data
)

This allows the treatment association to differ across severity groups.

Interpret interactions carefully. Because there are multiple logits, an interaction can have different effects for different outcome-category comparisons. Do not summarize a multinomial interaction using a single odds ratio unless that summary is explicitly justified.

Model Assumption: Linearity for Continuous Predictors

For a continuous predictor such as age, ordinary multinomial logistic regression assumes a linear relationship between age and each logit. For example:

$$ \log \left( \frac{P(\mathrm{CR})}{P(\mathrm{PD})} \right) = \beta_0+\beta_1\mathrm{Age} $$

This assumes a constant change in the log relative odds for each one-unit increase in age.

That assumption may be unrealistic.

Possible alternatives include:

  • Restricted cubic splines
  • Polynomial terms
  • Clinically motivated categories
  • Other flexible functional forms

Why Categorizing Continuous Variables Can Be Dangerous

It may be tempting to turn age into:

  • <50
  • 50–65
  • >65

Categorization can simplify presentation, but it also discards information and may introduce artificial thresholds.

If age has a nonlinear relationship with the multinomial outcome, flexible continuous modeling is often preferable.

Sparse Data and Separation

Multinomial models can become unstable when some combinations of predictors and outcome categories are rare. For example, suppose complete response occurs in only a few patients and all of those patients happen to receive the experimental treatment. The model may have difficulty estimating the CR equation reliably.

Potential warning signs include:

  • Very large coefficients
  • Very large standard errors
  • Extremely large odds ratios
  • Convergence warnings
  • Very wide confidence intervals
  • Predicted probabilities extremely close to 0 or 1
Rare categories deserve special attention. A mathematically valid multinomial model can still produce clinically unreliable estimates when there are too few events in one or more categories.

Sample Size Considerations

There is no single universal sample-size formula for multinomial logistic regression that works for every clinical study. The required sample size depends on:

  • Number of outcome categories
  • Prevalence of each category
  • Number of predictors
  • Effect sizes
  • Covariate distributions
  • Interactions
  • Desired precision or power

A simple rule such as "10 events per variable" should not be treated as a universal requirement for multinomial models.

Simulation-based planning can be particularly useful when the model is complex.

Missing Outcome Data

Multinomial regression generally requires the outcome category to be known for the patient included in the analysis. If outcome assessments are missing, investigators need a prespecified strategy.

Possible approaches include:

  • Complete-case analysis
  • Multiple imputation
  • Prespecified missing-as-category approaches when scientifically justified
  • Sensitivity analyses

The appropriate strategy depends on the endpoint, missingness mechanism, estimand, and clinical trial design.

Do not automatically treat "missing" as another clinical outcome. Missingness is generally a data-availability state, not necessarily a genuine response category.

Goodness of Fit

Model assessment should go beyond simply examining p-values. Useful considerations include:

  • Likelihood-based measures
  • AIC or other information criteria
  • Calibration of predicted probabilities
  • Observed versus predicted category frequencies
  • Influential observations
  • Residual diagnostics where available
  • Clinical plausibility of fitted probabilities

Observed vs Predicted Frequencies

A useful descriptive check is to compare observed outcome frequencies with model-predicted frequencies. Suppose the observed proportions are:

Outcome Observed Predicted
CR 12% 11%
PR 28% 29%
SD 31% 30%
PD 29% 30%

This suggests reasonably close aggregate calibration, although aggregate agreement alone does not establish good individual-level calibration.

What Multinomial Logistic Regression Does Not Tell You

An odds ratio does not directly provide:

  • Absolute risk difference
  • Risk ratio
  • Probability ratio
  • Number needed to treat
  • Individual patient outcome certainty

If the clinical question is about absolute probabilities, predicted probabilities or marginal standardization may be more useful.

Marginal Predicted Probabilities

Suppose investigators want to estimate the probability of each response category under treatment versus control while averaging over the observed distribution of other covariates. This can be accomplished using model-based marginal predictions.

Conceptually:

$$ \bar{P}_j = \frac{1}{N} \sum_{i=1}^{N} \hat{P}_{ij} $$

where \(\hat{P}_{ij}\) is the predicted probability for patient \(i\) and outcome category \(j\).

This can provide a more clinically interpretable summary than reporting only category-specific odds ratios.

Example of a Clinical Probability Summary

Outcome Control Experimental Difference
CR 6% 13% +7 percentage points
PR 22% 31% +9 percentage points
SD 32% 30% −2 percentage points
PD 40% 26% −14 percentage points

This presentation may be much easier for a clinical audience to interpret than a table containing only multinomial odds ratios.

Why Odds Ratios and Probabilities Can Tell Different Stories

The categories compete for probability mass. If treatment increases the probability of CR and PR, those increases necessarily come at the expense of probability assigned to other categories.

$$ P(\mathrm{CR}) + P(\mathrm{PR}) + P(\mathrm{SD}) + P(\mathrm{PD}) = 1 $$

Therefore, changing one category can alter the probabilities of all other categories even when the interpretation of an individual coefficient is framed as a category-versus-reference comparison.

A Practical Reporting Table

A useful clinical report might present the category-specific odds ratios like this:

Outcome Comparison OR 95% CI p-value
CR vs PD 3.00 1.55–5.82 0.001
PR vs PD 1.99 1.25–3.17 0.004
SD vs PD 1.25 0.88–1.77 0.210

The table should explicitly state the reference outcome.

For example:

Reference outcome: Progressive disease.

Never omit the outcome reference category from a multinomial regression table. Without it, readers cannot correctly interpret the odds ratios.

Common Mistakes

  1. Treating a nominal outcome as continuous. Coding CR, PR, SD, and PD as 1, 2, 3, and 4 and fitting ordinary linear regression imposes assumptions that are generally inappropriate.
  2. Using binary logistic regression automatically. A multicategory endpoint requires a model that accounts for all categories unless a scientifically justified binary contrast is the actual endpoint.
  3. Fitting multiple one-versus-rest logistic regressions without considering the joint outcome structure. This is not generally equivalent to a multinomial model.
  4. Forgetting the reference category. Every multinomial odds ratio is relative to a specific outcome category.
  5. Interpreting odds ratios as probability ratios. An OR of 2 does not mean the probability is twice as high.
  6. Assuming all category-specific coefficients are equal. Multinomial models generally permit different predictor effects across outcome-category comparisons.
  7. Ignoring the possibility of an ordinal model. If categories are genuinely ordered, ordinal regression may be more efficient and scientifically appropriate.
  8. Ignoring sparse outcome categories. Very rare categories can produce unstable estimates and enormous standard errors.
  9. Reporting only individual p-values. A global test may be needed to answer whether a predictor has an overall association with the multinomial outcome.
  10. Ignoring multiplicity. Many categories and predictors can generate many hypothesis tests.
  11. Ignoring nonlinear continuous effects. The default model assumes linearity on each logit scale.
  12. Reporting predicted classes without probabilities. The most likely category does not communicate how certain the prediction is.

Multinomial Logistic Regression Workflow

1
Define the outcome. Confirm that it has more than two mutually exclusive categories.
2
Determine whether the outcome is nominal or ordinal. Do not ignore clinically meaningful ordering.
3
Select the reference outcome. Choose a clinically interpretable baseline category.
4
Specify predictors. Define treatment, baseline covariates, interactions, and functional forms.
5
Fit the multinomial model. Estimate \(K-1\) category-specific logits.
6
Evaluate model adequacy. Examine convergence, sparse cells, functional form, and calibration.
7
Perform global tests. Assess whether predictors have an overall effect across outcome categories.
8
Calculate odds ratios. Exponentiate the category-specific coefficients.
9
Calculate predicted probabilities. Translate the model into clinically interpretable outcome probabilities.
10
Report clearly. Identify the reference outcome, effect estimates, confidence intervals, p-values, and relevant predicted probabilities.

How to Explain a Multinomial Model to Clinicians

A technically correct statistical explanation can still be difficult for a clinical audience. A useful strategy is to begin with the predicted probabilities.

For example:

After adjusting for baseline characteristics, the model estimated that the probability of complete response was 13% under experimental treatment compared with 6% under control.

Then provide the relative odds comparison:

The corresponding adjusted odds of complete response versus progressive disease were approximately three times higher under experimental treatment.

This gives the clinical audience both an absolute probability interpretation and a model-based relative effect.

Multinomial Regression in a Clinical Trial SAP

If multinomial logistic regression is prespecified as a primary or secondary analysis, the statistical analysis plan should clearly define:

  • Outcome categories
  • Reference outcome category
  • Analysis population
  • Predictors
  • Categorical-variable reference levels
  • Continuous-variable functional forms
  • Interaction terms
  • Missing-data handling
  • Model-fitting method
  • Hypothesis-testing strategy
  • Multiplicity strategy
  • Effect measures
  • Confidence interval level
  • Predicted-probability summaries, if applicable

Example SAP Language

A statistical analysis plan might specify that:

Example: The best overall response category will be analyzed using a multinomial logistic regression model with progressive disease as the reference category. The model will include treatment group and prespecified baseline covariates. Adjusted odds ratios and two-sided 95% confidence intervals will be reported for complete response versus progressive disease, partial response versus progressive disease, and stable disease versus progressive disease. A global likelihood ratio test will be used to evaluate the overall treatment effect across response categories.

The actual SAP should of course reflect the specific endpoint, estimand, analysis population, and statistical objectives of the study.

Multinomial Regression vs. Binary Response Analysis

Sometimes a clinical trial has a multicategory endpoint but the primary analysis deliberately collapses it. For example:

$$ \text{Responder} = \{\mathrm{CR},\mathrm{PR}\} $$ $$ \text{Non-responder} = \{\mathrm{SD},\mathrm{PD}\} $$

Then binary logistic regression could be used for that specific binary endpoint.

That is not inherently wrong. The question is whether the collapsed endpoint is the scientifically intended estimand.

Model choice follows the estimand. Do not choose multinomial regression merely because the raw data contain multiple categories. First determine what clinical question the analysis is supposed to answer.

When Multinomial Logistic Regression Is Particularly Useful

  • Best overall response has multiple nominal categories.
  • A clinical outcome has several mutually exclusive states.
  • The categories should not be assumed to follow a proportional-odds structure.
  • Separate predictor effects for different outcome categories are scientifically important.
  • Researchers want predicted probabilities for all categories simultaneously.
  • A binary collapse of the outcome would discard clinically relevant information.

When Another Model May Be Better

  • The outcome has only two categories → binary logistic regression.
  • The categories are genuinely ordinal → consider ordinal logistic regression.
  • The outcome represents repeated longitudinal states → consider a longitudinal or transition model.
  • The outcome represents competing event times → consider competing-risks survival methods.
  • The outcome categories are generated by a hierarchical process → consider a model reflecting that hierarchy.
  • Events are extremely sparse → consider alternative modeling strategies or category definitions.

Key Mathematical Summary

For \(K\) nominal outcome categories with category \(K\) as the reference, the baseline-category multinomial model is:

$$ \log \left( \frac{P(Y=j)}{P(Y=K)} \right) = \beta_{0j} + \beta_{1j}X_1 +\cdots+ \beta_{pj}X_p, \qquad j=1,\ldots,K-1 $$

The category-specific odds ratio for a one-unit increase in \(X_r\) is:

$$ OR_{jr} = e^{\beta_{rj}} $$

The predicted probability of category \(j\) is:

$$ P(Y=j) = \frac{\exp(\eta_j)} {1+\sum_{\ell=1}^{K-1}\exp(\eta_\ell)} $$

for \(j=1,\ldots,K-1\), while the reference-category probability is:

$$ P(Y=K) = \frac{1} {1+\sum_{\ell=1}^{K-1}\exp(\eta_\ell)} $$

Complete Worked Example Summary

Component Example
Outcome Best overall response
Categories CR, PR, SD, PD
Reference category PD
Number of logits 3
Primary predictor Treatment
Additional covariates Age, baseline severity
CR vs PD treatment OR 3.00
PR vs PD treatment OR 1.99
SD vs PD treatment OR 1.25
Model output Category-specific coefficients and predicted probabilities

The Most Important Concept

The most important idea in multinomial logistic regression is simple: the model compares each non-reference outcome category with a selected reference category while allowing predictors to have different effects for different comparisons.

For a four-category endpoint:

$$ \mathrm{CR:PD}, \qquad \mathrm{PR:PD}, \qquad \mathrm{SD:PD} $$

are three separate logits. Each can have its own intercept and predictor coefficients.

The coefficients are interpreted through relative odds, while the complete model can be converted into predicted probabilities that sum to one.

Bottom line: Multinomial logistic regression is a natural extension of binary logistic regression for outcomes with more than two nominal categories. With \(K\) outcome categories, the baseline-category model estimates \(K-1\) logits relative to a selected reference category. Exponentiated coefficients provide category-specific odds ratios, while the fitted model can also generate patient-level or marginal predicted probabilities. In clinical research, careful attention should be paid to whether the endpoint is nominal or ordinal, the choice of reference category, sparse outcome categories, continuous predictor functional forms, global treatment tests, multiplicity, and the clinical interpretation of predicted probabilities.

References

Agresti, A. (2013). Categorical Data Analysis, 3rd ed. Wiley.
Hosmer, D.W., Lemeshow, S. & Sturdivant, R.X. (2013). Applied Logistic Regression, 3rd ed. Wiley.
Long, J.S. & Freese, J. (2014). Regression Models for Categorical Dependent Variables Using Stata, 3rd ed. Stata Press.
McCullagh, P. (1980). Regression models for ordinal data. Journal of the Royal Statistical Society: Series B, 42, 109–142.
Venables, W.N. & Ripley, B.D. (2002). Modern Applied Statistics with S, 4th ed. Springer.
Harrell, F.E. (2015). Regression Modeling Strategies, 2nd ed. Springer.