Why Do Ordinal and Multinomial Logistic Regression Disagree About the Same Patients?

Clinical Epidemiology ResearchUniqcret doctor knowledgesData Analytics or StatisticsStata [Data Analytics]
Why Do Ordinal and Multinomial Logistic Regression Disagree About the Same Patients?
On this page

อ่านฉบับภาษาไทย (Thai version)

Abstract

Ordinal and multinomial logistic regression can tell different stories about the same patients. In a constructed example of 1,000 adults with community-acquired pneumonia, the 30-day course is home, ward admission, or ICU or death. Ordinal logistic regression predicts that living alone raises ICU or death from 0.073 to 0.147; the data show 0.089 against 0.106. We turn the three ordered steps into two yes/no questions: admitted at all, and reached the top step. One ordinary logistic regression per question gives living alone two odds ratios, 3.146 and 1.159. Ordinal logistic regression promises they are equal and reports one, 2.345. That compromise moves too few patients who live alone across the first cut and too many across the second. The multinomial model makes no such promise, but it gives up the order. A partial model keeps the order and gives only living alone two odds ratios. Two questions decide: is there an order, and does the promise hold?


Visual summary
the three-step ladder of the outcome and its two cut lines
The outcome is a ladder of three steps, so an ordinal model cuts it in two places; a multinomial model compares each step with the bottom one.

Same patients, two answers

An emergency physician wants to know whether living alone changes what happens to adults with community-acquired pneumonia. Within 30 days, each patient ends up in one of three places: treated at home, admitted to a ward, or in the ICU or dead. The team fits two models to the same 1,000 patients, with the same two predictors, age and living alone.

  • Ordinal logistic regression (Stata ologit) says living alone raises the odds of a worse course, with one odds ratio of 2.345.
  • Multinomial logistic regression (Stata mlogit) gives two numbers for living alone, one for each step above home.

To compare them, each model predicts the chance of each course twice: as if every patient lived alone, then as if none did, keeping everyone's real age. Stata calls these averages predictive margins (margins alone). Here is the top of the ladder, ICU or death.

Constructed example, 1,000 patients. Observed: proportions within each group. Predicted: predictive margins from margins alone after each model (every patient set to each value of living alone, ages held as observed).
ICU or death within 30 daysDoes not live aloneLives alone
Observed in the data0.0890.106
Predicted by ordinal logistic regression0.0730.147
Predicted by multinomial logistic regression0.0900.103

Read the first row first. In the data, 8.9% of the patients who do not live alone and 10.6% of those who live alone reached the ICU or died. Living alone barely moves that number.

Now read the second row. The ordinal model says the same proportion goes from 7.3% to 14.7%, doubling it where the data barely move.

The multinomial model, in the third row, stays close to the data: 9.0% and 10.3%. It should: it gives living alone its own number for each category, so matching these group proportions is largely built in. The section "Comparing the models" returns to this.

The first row is a crude proportion within each group; the model rows are averaged over the ages of all 1,000 patients. Living alone was generated independently of age here, so the comparison is fair.

The 1,000 patients are a constructed example, built so that the difference between the models is easy to see. They are not data from any hospital, and every number in this article comes from one Stata run on them, checked in R.

Same patients, same predictors, two answers. Which one should a clinician believe? We will not start from the equations of the two models. We will start from the outcome, and build both models from yes/no questions you already answer with ordinary logistic regression.

Three ordered steps make two yes/no questions

Ordinary logistic regression needs a yes/no outcome: admitted or not, dead or not. Our outcome has three steps: home, ward, ICU or death. So the first task is to turn three steps into yes/no questions.

Try it yourself. Draw one line across the ladder and call everything above it "yes". How many places can the line go without breaking the order?

Exactly two, the two lines in the ladder above.

  • Split 1 puts home on one side and ward or ICU or death on the other. It asks: is the patient admitted at all?
  • Split 2 puts home or ward on one side and ICU or death on the other. It asks: did the patient reach the top step?

Any other grouping breaks the order. Ward against home or ICU or death, for example, lumps the mildest and the most serious course together. In general, a ladder of K ordered steps gives K - 1 such splits: three steps give two, four steps give three.

Each split gathers every step above the cut into "yes". The "yes" of split 1 holds ward and ICU or death together. That is why these splits are called cumulative splits, and the odds of being above a cut are called cumulative odds.

Not every outcome is a ladder. Blood group A, B, AB or O has no natural order. Nor does the way a patient travelled to hospital: ambulance, private car or taxi. No category is "more" than another, and such an outcome is called nominal.

Pain recorded as none, mild, moderate or severe does sit on a ladder, and so does our outcome. Such an outcome is called ordinal. A nominal outcome has no cumulative splits, because there is no "above" for a line to cut.

So the first question that chooses the model is: is there an order? It is not the only question. An order makes splits possible. Whether a model may treat the splits alike is a second question, and most of this article is about it.

The example dataset: 1,000 ED pneumonia patients

Each row is one patient, so the observations are independent: nobody appears twice, and nobody is matched to anyone else. (Matched sets need conditional logistic regression, which a separate post covers: Why Do Logistic and Conditional Logistic Regression Give Different Odds Ratios?.)

The variables are:

  • course: the 30-day course, coded 0 home, 1 ward admission, 2 ICU or death.
  • age10: (age − 65)/10, so 0 means age 65 and its odds ratio is per 10 years of age.
  • alone: 1 if the patient lives alone, 0 otherwise. Of the 1,000 patients, 255 live alone.

Here is how the course is spread in each group.

Constructed example. Column proportions within each group.
CourseDoes not live aloneLives alone (n = 255)
0 Home0.5960.361
1 Ward admission0.3150.533
2 ICU or death0.0890.106

Look at what living alone does. The home row empties, from 0.596 to 0.361. Almost all of that goes to the ward, from 0.315 to 0.533. The ICU-or-death row hardly moves.

In the words of the splits: living alone goes with a large move at split 1, out of home, and almost none at split 2, into ICU or death.

A clinician would recognise this pattern. In real patients it would suggest a "social admission": a frail older adult with pneumonia who lives alone may be admitted because nobody can watch them at home. In these constructed data we know it is so, because we built them that way. Living alone changes the decision to admit, not the severity of the pneumonia.

Because the data were built by code, we also know the truth that generated them. Living alone multiplied the odds at split 1, admitted or worse, by 3.0. It multiplied the odds at split 2, ICU or death, by 1.0, that is, not at all. Age multiplied the odds at both splits by 1.8 per 10 years.

Keep those two facts in mind: age acts the same way at both splits, living alone does not. The rest of the article shows how each model handles them.

One ordinary logistic regression per split: two odds ratios

Two yes/no questions mean two ordinary logistic regressions, one per split. Each regression gives every predictor its own odds ratio. So each predictor ends up with two odds ratios, one per split.

Step 1. Make two binary outcomes.

  • ge1 = 1 if the course is ward or worse (split 1), else 0.
  • ge2 = 1 if the course is ICU or death (split 2), else 0.

Step 2. Look at the crude odds ratios. Without any adjustment, living alone has an odds ratio of 2.613 at split 1 and 1.218 at split 2.

Step 3. Adjust for age. Fit logistic ge1 age10 i.alone and logistic ge2 age10 i.alone.

Constructed example. Odds ratios with 95% CIs from two separate binary logistic regressions, one per split. Compare across each row: is a predictor's effect the same at both splits?
PredictorSplit 1: ward or worse vs homeSplit 2: ICU or death vs home or ward
Lives alone3.146 (2.253 to 4.393)1.159 (0.711 to 1.890)
Age, per 10 years2.023 (1.818 to 2.251)1.879 (1.571 to 2.246)

Step 4. Compare across each row. Ask one question: does this predictor act the same way at both splits?

  • Age: 2.023 and 1.879. Close, with heavily overlapping intervals, so age acts about the same at both splits. Both sit near, and somewhat above, the 1.8 that built the data; the split-1 interval (1.818 to 2.251) just misses it. That is ordinary sampling variation: about one 95% interval in twenty misses the true value.
  • Living alone: 3.146 and 1.159. Not close. At split 1 living alone roughly triples the odds of admission. At split 2 the estimate is near 1, but the interval (0.711 to 1.890) is wide: the data are compatible with anything from a modest reduction to a near doubling of the odds. In real data that would mean "no clear effect", not "no effect"; we know the true value is 1.0 only because we built the data.

Hold on to these four numbers. The next model has to deal with them.

Ordinal logistic regression: one odds ratio, and the promise behind it

Now fit ordinal logistic regression to the same patients, ologit course age10 i.alone, or. It prints one odds ratio per predictor, not two:

  • Living alone: OR 2.345 (95% CI 1.759 to 3.127).
  • Age, per 10 years: OR 1.969 (95% CI 1.785 to 2.173).

Where did the two odds ratios go? The model fits both splits at once, and it promises that each predictor has the same odds ratio at both. Only the position of the cut changes from split 1 to split 2.

This promise has a name: proportional odds, also called the parallel-lines or parallel-regression assumption. It is the usual form of ordinal logistic regression [1, 7]. For living alone it reads: for patients of the same age, those who live alone have 2.345 times the odds of a higher course, at either split.

For age the promise nearly holds. The two split regressions gave 2.023 and 1.879, and 1.969 sits between them. One number is an honest summary.

For living alone it does not hold. The split regressions gave 3.146 and 1.159, and the model reports 2.345. That number behaves like a compromise between the two, not their simple average.

The compromise sits closer to split 1. Roughly, the model weights each split by how much information it carries. Split 1 has large groups of patients on both sides of its cut; split 2 rests on the small group who reached the ICU or died.

Take that as a rule of thumb, not a formula. Once the promise is broken, the single odds ratio has no simple closed form.

split-specific odds ratios for living alone and for age, with the single ologit odds ratio as a dashed line
Each dot is the odds ratio at one split, with its 95% CI. The dashed line is the one odds ratio that ordinal logistic regression reports. For age, the dashed line runs through both dots. For living alone, it falls between the two dots: at the lower edge of the split-1 interval and far outside the split-2 interval.

Stata writes the model like this:

\[ \text{logit}\, P(Y > j) = x\beta - \kappa_j, \]

\[ j = 0, 1 \]

  • \(P(Y > j)\) is the probability of being above step \(j\): ward or worse for \(j = 0\) (split 1), ICU or death for \(j = 1\) (split 2).
  • \(x\beta\) is the patient's linear predictor, with one \(\beta\) per variable, shared by both splits. That shared \(\beta\) is the promise.
  • \(\kappa_j\) places split \(j\) on the log-odds scale. It is called the threshold. Stata numbers the thresholds from 1, so \(\kappa_0\) is printed as /cut1 = 0.412 and \(\kappa_1\) as /cut2 = 2.942.

The sign is the part people get wrong. Stata models the probability of being above a cut, so a positive \(\beta\), an odds ratio greater than 1, pushes patients towards the higher categories. Because \(\kappa_j\) enters with a minus sign, a higher threshold means fewer patients clear it.

The two thresholds are not effects. They place the cuts for a patient with both predictors at zero. Because age10 is centred at 65, that is a 65-year-old who does not live alone, not a newborn. The thresholds turn the model into probabilities, but they answer no clinical question.

What the broken promise costs: predictions pushed the wrong way

When the promise fails, ologit does not refuse to run and does not warn you. It returns 2.345 as if nothing were wrong. The cost appears the moment the model is used to predict.

Follow the patients who live alone, one split at a time.

At split 1. The data's own odds ratio here is 3.146. The model must use 2.345, which is smaller. So it moves too few patients who live alone across split 1 and leaves too many at home: 0.411 predicted against 0.361 observed.

At split 2. The data's own odds ratio here is 1.159. The model must use 2.345 again, which is larger. So it moves too many across split 2: 0.147 predicted in the ICU or dead against 0.106 observed.

On the ward. The ward sits between the two cuts, so it loses on both sides. Too few patients leave home for it, and too many pass it on the way to the top. It gets 0.442 predicted against 0.533 observed.

Constructed example. Observed: proportions among the 255 patients who live alone. Predicted: predictive margins after ologit, with all 1,000 patients set to "lives alone" and ages as observed. Read the last column: the model squeezes the middle step and over-fills both ends.
Course, patients who live aloneObservedPredicted by ordinal logistic regressionDirection of the miss
Home0.3610.411Too many left at home: too few moved across split 1
Ward admission0.5330.442Too few: squeezed from both sides
ICU or death0.1060.147Too many: too many moved across split 2

The direction follows a rule of thumb. It is a rule for the patients the predictor moves up the ladder, here those who live alone. At a split whose own odds ratio is larger than the compromise, the model moves too few of them across. At a split whose own odds ratio is smaller, it moves too many.

With the opposite pattern, small at split 1 and large at split 2, both errors would pile them into the middle step instead.

The patients who do not live alone pay too, in the opposite direction. The cuts are shared, so the single odds ratio sets how far apart the two groups sit at each split. At split 2 it puts them too far apart: too many who live alone in the ICU or dead (0.147 against 0.106), and too few who do not (0.073 against 0.089). At split 1 it puts them too close together, so too many who do not live alone leave home: 0.582 predicted at home against 0.596 observed.

That is the false alarm in the opening table.

observed proportions and predictive margins from ologit and mlogit, with every patient set to each value of living alone
Black bars are the data, proportions within each group. The model bars are predictive margins: every patient set to "does not live alone", then to "lives alone", with ages as observed. The hatched orange bars from ordinal logistic regression miss in the "lives alone" panel: too few on the ward, too many in the ICU or dead, which means the single odds ratio misplaces patients who live alone. The blue bars from multinomial logistic regression stay close to the data.

Notice that age causes no such problem. Age really does act the same way at both splits, so its single odds ratio, 1.969, is an honest summary.

The failure belongs to one variable, not to the model as a whole. Keep that in mind. The model in the next section gives every variable more than one number, not only this one.

Multinomial logistic regression: each category against the base

When the promise breaks, many analysts turn to multinomial logistic regression. It asks a different question [6]. It does not cut the ladder. It picks one category as the base and compares each other category with it.

With home as the base, there are two pairs: ward against home, and ICU or death against home. So each predictor again gets two numbers, one per pair. Nothing forces them to be equal, and nothing uses the order.

A common shortcut says: ordinal outcome, ologit; nominal outcome, mlogit. That shortcut is not the whole truth, in two ways.

First, an ordinal outcome does not make ologit right by itself: ours is ordinal, yet ologit misread living alone. Second, mlogit can be used for an ordered outcome too. That is not wrong. It simply ignores the order and answers a question about each category against the base.

In general, an outcome with \(K\) categories needs \(K - 1\) equations; here \(K - 1 = 2\):

\[ \ln\frac{P(Y = 1)}{P(Y = 0)} = b_{10} + b_{11}\,\text{age10} + b_{12}\,\text{alone} \]

\[ \ln\frac{P(Y = 2)}{P(Y = 0)} = b_{20} + b_{21}\,\text{age10} + b_{22}\,\text{alone} \]

Each equation has its own intercept and its own slopes. Nothing ties the effect of living alone on "ward vs home" to its effect on "ICU or death vs home".

Always name the base. Without baseoutcome(#), Stata uses the most frequent category as the base, which may change when the data change. Write it every time, with the numeric code: mlogit course age10 i.alone, baseoutcome(0) rrr.

Exponentiate a slope, exp(b), and you get the factor by which the ratio P(category) / P(base) changes per unit of the predictor. The rrr option prints it, and Stata calls it the relative-risk ratio (RRR):

Constructed example. Relative-risk ratios with 95% CIs, base = home (code 0). Each row compares one category with home, not one split.
ComparisonLives aloneAge, per 10 years
Ward vs home3.291 (2.339 to 4.631)1.919 (1.718 to 2.144)
ICU or death vs home2.448 (1.426 to 4.200)2.604 (2.139 to 3.171)

Read the first cell. For patients of the same age, living alone multiplies the ratio P(ward) / P(home) by 3.291.

That is all an RRR says. Despite its name, an RRR is not a risk ratio. It is not the factor by which the risk of ward admission changes. It is the factor by which the ratio of two probabilities, the category over the base, changes.

The puzzle: why is the RRR for ICU or death 2.448?

Now look at the second row. The RRR for ICU or death against home is 2.448, with an interval from 1.426 to 4.200. But we built the data so that living alone does not change ICU or death, and the observed proportion barely moves, from 0.089 to 0.106. How can the RRR be 2.448?

Because an RRR is a ratio of two ratios: it compares P(ICU or death) / P(home) between the two groups. Living alone changes the denominator of that ratio. The base category, home, empties: from 0.596 to 0.361. The numerator, ICU or death, stays about where it was, and a ratio whose bottom shrinks while its top stays put goes up.

So the RRR of 2.448 is not an error. It means "relative to staying home, ICU or death becomes more likely". It does not mean that living alone makes ICU or death more common. The change is in home, not in the ICU.

The base decides what the RRR means

Change the base and the same model tells the story differently. The contrast between two non-base categories is the difference of their coefficients. On the log scale, living alone has b = 1.191 for ward and b = 0.895 for ICU or death.

With ward as the base, the coefficient for ICU or death against ward would be the difference, which is negative. Relative to being on the ward, ICU or death becomes less likely for patients who live alone.

Nothing about the patients changed; only the reference did. That is why the base must be chosen on purpose, named in the methods, and kept in mind when reading every RRR.

For clinical readers, the safest summary is not the RRR at all but the predicted probability of each category, which does not depend on the base. That is what the opening table shows: 0.090 and 0.103 for ICU or death.

What mlogit gives up: the order

If mlogit makes no promise, why not use it every time? Because it pays for its freedom three times. This section and the next two show the three prices.

First, it forgets the order. mlogit treats home, ward and ICU or death as three names, not three steps. Shuffle the codes, say ICU or death as 0 and home as 2, and the fit and the predicted probabilities do not change. For an outcome whose order carries meaning, that information is thrown away.

The two splits of the earlier sections are gone. mlogit never asks "admitted at all?" or "reached the top step?". That leaves an open question: is there a model that keeps the order and still lets the promise break?

Counting the numbers mlogit needs

Second, it needs more numbers. mlogit gives each predictor term one effect estimate per non-base category, so it reports predictor terms x (categories - 1) effect estimates. ologit reports one per term.

A binary predictor or a continuous one entered as a straight line is one term. A categorical predictor with L levels is L - 1 terms. In the table, every predictor is a single term.

For example, with 5 single-term predictors and the 3 categories of our outcome, mlogit needs 10 effect estimates and ologit needs 5. The second row of the table shows this case.

Constructed example in the first row; the other rows show how the counts grow. Effect estimates only: each model also has thresholds or intercepts on top.
Predictors and categoriesologitmlogit
2 predictors, 3 categories (this example)24
5 predictors, 3 categories510
5 predictors, 5 categories520

These counts are arithmetic, not results. Thresholds or intercepts come on top, two in each model here. That is why the comparison table near the end lists 4 parameters for ologit and 6 for mlogit.

Wider intervals: each number rests on fewer patients

Third, each number rests on fewer patients, so intervals widen. mlogit is still one fit to all 1,000 patients. But each of its numbers answers a narrower question. The information for that question comes mainly from the two categories it compares, so the smallest category limits it.

Take age, the variable that keeps the promise. ologit says it once: 1.969 (95% CI 1.785 to 2.173). mlogit needs two numbers: 1.919 (1.718 to 2.144) for ward against home, and 2.604 (2.139 to 3.171) for ICU or death against home.

The second mlogit number rests on the smallest category, ICU or death, and its interval is visibly wider. The two numbers also differ from each other, but that is not a broken promise: they compare categories with home, not splits. ICU or death sits two steps above home, so a predictor that pushes patients up the ladder is expected to move that pair more.

One honest caveat. The narrow ologit interval is a gain only where the promise holds. For living alone, where it breaks, 2.345 (1.759 to 3.127) is a precise answer to the wrong question. Its interval excludes both split odds ratios, 3.146 and 1.159.

Why not use mlogit every time?

Put the three prices together. mlogit buys its freedom with the order, with twice as many effect estimates here (4 against 2), and with wider intervals.

So neither model is satisfying for this outcome. ologit keeps the order, but its promise breaks for living alone. mlogit fits living alone, but it throws the order away for every variable, age included. The next section returns to the open question.

Partial proportional odds: keep the order, free only what breaks

When the promise breaks, there are two common repairs. One is already known: drop the splits and the order, and compare each category with a base. That is mlogit. It frees everything: no variable is held to a single number.

The other repair changes as little as possible. It keeps the splits and the order, and frees only the variable that breaks the promise. Age keeps one odds ratio for both splits; living alone gets its own odds ratio at each split.

This repair has a formal name: the partial proportional odds model, a form of the generalised ordered logit [3, 7]. It sits between the two models of the earlier sections in how much it frees: ologit frees no variable, and mlogit frees every variable.

It uses the same two splits as before, so it is still a model of splits. Freeing every variable in it would not turn it into mlogit. Each variable either keeps a single odds ratio across splits or gets its own odds ratio at each split.

Because every equation is still a cumulative split, the order of the outcome is kept. This fits what the split odds ratios showed for our patients: age can keep one odds ratio, and living alone seems to need two.

Count its numbers as in the counting section. It spends 3 effect estimates here, one for age and two for living alone, between the 2 of ologit and the 4 of mlogit. With its two thresholds that makes 5 parameters. With 5 single-term predictors and 3 categories, it would spend from 5, with none freed, to 10, with all freed.

In Stata it is fitted with gologit2, a user-written command (install once with ssc install gologit2):

gologit2 course age10 i.alone, autofit or

The autofit option starts with every variable free. One step at a time, it gives one shared odds ratio back to each variable that shows no clear departure from the promise (a Wald test at the usual significance level), and it leaves free the variables that fail. It is a useful first look, but it is a stepwise p-value rule, and a p value alone should not decide which variables to free.

In your own analysis, decide in advance which variables keep one odds ratio, on clinical grounds and from the split odds ratios. Then pre-specify them: gologit2 course age10 i.alone, pl(age10) or keeps age parallel and lets living alone differ by split.

On our patients autofit keeps age parallel and frees living alone:

  • Age, per 10 years, the same at both splits: OR 2.001 (95% CI 1.809 to 2.212).
  • Living alone at split 1, ward or worse vs home: OR 3.075 (2.212 to 4.275).
  • Living alone at split 2, ICU or death vs home or ward: OR 1.139 (0.699 to 1.857).

Compare these with the values that built the data: 3.0 and 1.0 for living alone, and 1.8 for age at both splits. The estimates sit near them and tell the same story as the two split regressions. Age shifts patients up the whole ladder; living alone pushes them onto the ward and no further.

The age estimate, 2.001, sits a little above 1.8, and its interval (1.809 to 2.212) just misses it. That is sampling variation again, not a flaw in the model.

One practical note: gologit2 names its equations after the category below each cut. The equation called "Home" is split 1 (course above 0), and the one called "Ward" is split 2 (course above 1). Its direction is the same as ologit: an odds ratio above 1 means higher categories.

autofit picked living alone by a test. The next two sections show tests of this kind and how to read them.

Testing the promise

Every proportional-odds test starts from the same null hypothesis: the promise holds, and each odds ratio is equal at every split. So a small p value is evidence that the promise is broken, not kept. A large p value is not proof that it holds. Read it the way you read any test against a null of "no difference".

The split odds ratios, and the forest plot shown earlier, remain the most useful check. They show how big the gap is and which way it runs. Formal tests add a p value.

Omnibus tests with oparallel. This is a user-written command; install it once with ssc install oparallel. Run it straight after ologit. On our patients it reports:

  • Brant test: chi-squared 14.115 on 2 df, p = 0.0009.
  • Likelihood-ratio test: chi-squared 15.035 on 2 df, p = 0.0005.

Both p values are small, so the same odds ratio at both splits does not fit these data. The Brant test [2] compares the slopes of the split-specific logits. The likelihood-ratio test compares the ordinal model with a model that lets every slope differ by split.

In StataNow, estat parallel after ologit gives the same family of tests. The classic brant command belongs to SPost13 [8], which is not part of official Stata; locate it with search spost13_ado.

So something breaks the promise. The next section finds which variable.

The choice for this dataset: free only living alone

One test per variable, with built-in commands. An omnibus test says that something breaks the promise, not what.

To find the culprit, fit the two split logits and stack them with suest. That command gives the two fits one joint covariance, so their coefficients can be compared. Then test whether each coefficient is equal across splits (a Wald test):

  • Living alone: chi-squared 13.557 on 1 df, p = 0.0002.
  • Age: chi-squared 0.655 on 1 df, p = 0.4183.
  • Both together: chi-squared 14.232 on 2 df, p = 0.0008.

The culprit is living alone, exactly as the split odds ratios showed. For age, the test detects no departure (p = 0.4183). That alone does not prove the promise holds. Together with the close split odds ratios, 2.023 and 1.879, it makes one odds ratio for age a reasonable summary.

A caution about these tests. With 1,000 patients, a formal test can flag a departure too small to matter, and in a small sample it can miss one that does. So never decide from the p value alone.

Look at the split odds ratios and ask the clinical question: is the gap large enough to change what you would tell a patient? Here it is. An odds ratio of 3.146 for admission and 1.159, with a wide interval around 1, for ICU or death are two different clinical messages.

So for these patients we choose the partial model, with age parallel and living alone freed: gologit2 course age10 i.alone, pl(age10) or. Only one variable breaks the promise, and the order still matters for our question. mlogit would free age as well and drop the order for every variable.

This is the model autofit chose in the partial proportional odds section, so its estimates are the ones shown there. In a real study, choose the variables to free on clinical grounds and from the split odds ratios, not from a test alone. Write the choice and its reason down before you fit the final model.

IIA: the assumption that comes with mlogit

Two side notes on mlogit remain before we compare the models.

It is often said that multinomial logistic regression "has no assumptions" because it does not need proportional odds. It still has the usual ones: independent observations, the right form for continuous predictors, and enough patients in every category. It also has one of its own.

That assumption says the odds of one category against another do not depend on which other categories are on the menu. The classic example is transport.

Suppose patients reach the hospital by ambulance or by private car, with odds of 1 to 1. Now a taxi appears that is, for practical purposes, the same as a private car. Common sense says the taxi will take most of its users from private cars. But the assumption forces the ambulance-to-car odds to stay 1 to 1, so the taxi must draw from both in proportion.

This assumption is called independence of irrelevant alternatives (IIA). When options are close substitutes, IIA is unrealistic, and mlogit can mislead.

For a severity ladder like ours, IIA matters little. Home, ward and ICU or death are not choices from a menu that can gain or lose options; they are fixed clinical states defined by the study.

There are formal IIA tests, Hausman-type and Small-Hsiao tests, but on the same data they often disagree and depend on which category is dropped [5]. Long and Freese advise against relying on them [8]. Judge IIA by thinking about what the categories are, not by a p value.

Joint, not separate

A sentence often heard about multinomial logistic regression is that "each category-to-base contrast is modelled independently", as if mlogit were simply two binary logistic regressions run side by side. It is not.

mlogit fits both contrasts together, in one likelihood. The two equations share the same base category and the same patients. The model guarantees that every patient's three predicted probabilities add up to 1.

You can fit "the same" contrasts separately: a binary logit of ward vs home on the patients who were home or on the ward, and one of ICU or death vs home on the patients who were home or in the ICU or dead. Begg and Gray showed that these individualised regressions give consistent estimates, at some cost in efficiency, that is, with somewhat larger standard errors on average [4]. Here is what that looks like on our patients, on the log-odds scale:

Constructed example. Coefficients and standard errors from one mlogit fit and from two separate binary logits on subsamples. The ICU-or-death rows differ most, because that contrast rests on fewer patients.
Contrast and predictormlogit b (SE)Separate logit b (SE)
Ward vs home, age per 10 years0.652 (0.057)0.654 (0.057)
Ward vs home, lives alone1.191 (0.174)1.193 (0.176)
ICU or death vs home, age per 10 years0.957 (0.100)0.896 (0.100)
ICU or death vs home, lives alone0.895 (0.276)0.872 (0.295)

The estimates are close but not identical. The ICU-or-death coefficients move the most, because that contrast rests on fewer patients.

The standard errors are also close but not identical. For living alone the separate fits give larger ones here, 0.176 against 0.174 and 0.295 against 0.276; for age they are the same, 0.057 and 0.100 in both columns. Begg and Gray describe a loss of efficiency in general, not a guarantee that every standard error from separate fits will be larger.

mlogit and separate-logit coefficients with one-SE bars
Blue circles are the joint mlogit fit; vermillion squares are the separate binary logits. The bars span one SE either side. The pairs nearly overlap, which means the two fits are close, but not the same model.

Separate logits are a fine way to understand what mlogit does. But the model you report is the joint one: one likelihood, a shared base, and probabilities that add up to 1 for every patient.

Comparing the models

One more check on the choice.

Two common scores weigh how well a model fits the data against how many parameters it spends. On both, lower is better. They are AIC and BIC.

AIC charges 2 points per parameter. BIC charges ln(n) points, which is more than 2 in any sample larger than about 8 patients, so BIC favours the smaller model more strongly.

Constructed example, 1,000 patients. Lower AIC and BIC mean a better balance of fit and size. The middle column wins on both.
Ordinal (ologit)Partial proportional odds (gologit2)Multinomial (mlogit)
Question answeredHow does X shift the patient up the ladder?Same, letting chosen variables act differently at each splitHow does X change each category relative to the base?
Uses the orderYesYesNo
Parameters here456
Key assumptionProportional odds for every variableProportional odds for the variables kept parallelIIA; enough patients in every category
AIC1606.6161593.9181596.633
BIC1626.2481618.4571626.080

The partial proportional odds model has the lowest AIC and the lowest BIC. It fits these patients at least as well as the multinomial model while spending one parameter fewer. It fits far better than the ordinal model at the cost of one parameter more.

One caution before generalising. We built these data from a partial proportional odds model, so its win here is expected by design, not a general result. In real data no model is known to be true, and the same comparison can favour mlogit or ologit.

Two smaller cautions. mlogit gives living alone its own coefficient in each equation, so its near match to the observed proportions by living alone is largely by construction; it does not show that mlogit is the right model. And because autofit chose the variable to free on these same data, the partial model's AIC is a little optimistic.

Choosing in practice: two questions, not one

The kind of outcome does not choose the model by itself. Two questions do. First: do the categories have an order? Second, if they do: does the promise hold, one odds ratio per predictor at every split?

Constructed example aside, the two questions apply to any categorical outcome with independent observations. Read down the first column until a row matches your outcome and your split odds ratios.
SituationModelWhat you gain, what you pay
No order (nominal outcome)mlogit, with baseoutcome(#)Gain: no order is assumed, and none is needed. Pay: predictor terms x (categories - 1) estimates, and IIA to think about.
Order, and the promise holds: the split odds ratios are close enough that one number tells the same clinical story at every splitologitGain: one odds ratio per predictor, narrow intervals, a short report. Pay: nothing, as long as the promise really holds.
Order, and one or a few variables show a gap large enough to matterPartial proportional odds, freeing only the culprit, pre-specified with gologit2 ..., pl(), where pl() lists the variables that stay parallelGain: the order kept and honest predictions. Pay: extra estimates for the freed variables only, and a user-written command.
Order, the promise is broken, and the order does not matter for your question or most variables break itmlogitGain: every predictor free at every category. Pay: the order lost, more estimates, wider intervals.

A few practical notes go with the table.

  • Check the promise two ways. Fit the split-specific binary logits and compare their odds ratios; then run oparallel (or estat parallel in StataNow).
  • Weigh the size of the difference, not only the p value. A non-significant test supports the promise but does not prove it. A significant test with a small gap may still be acceptable; report the split odds ratios.
  • Choose the variables to free in advance, from the split odds ratios and clinical reasoning. autofit can suggest candidates, but it is a p-value rule.
  • Other models keep the order too, when the partial model does not suit: the stereotype logit (slogit, official Stata) or a continuation-ratio model.
  • If most variables break the promise but the split questions still matter, gologit2 with no pl() frees every variable and keeps the splits. It reports as many estimates as mlogit, and it can give negative predicted probabilities.
  • With mlogit, always write baseoutcome(#), and report predicted probabilities beside the RRRs.

Check yourself. A pain score has four ordered levels, and your model has six predictors, each a single binary or continuous term. Only one predictor breaks the promise. How many effect estimates does each model report, and which would you fit?

The answer: ologit reports 6, one per predictor. The partial model reports 8: one for each of the five that keep the promise, and three for the culprit, one per split. mlogit reports 18, six predictors times three. Fit the partial model: it keeps the order and frees only what needs freeing.

Reproduce the example

Every number above comes from one do-file, 02_mlogit_vs_ologit.do, run in Stata and checked in R. That do-file first builds the constructed data with a fixed random seed. The first box below is its generator part, copied line for line, so you can make the same 1,000 patients yourself; the full do-file also exports the same rows as cap_course.csv for R. The other boxes are short versions, and each one starts from the analysis dataset cap_course.dta (or cap_course.csv for R).

Stata

Make the data (the generator part of the full do-file):

set seed 20261119
set obs 1000
generate int age = runiformint(40, 90)
generate byte alone = runiform() < 0.25
generate double age10 = (age - 65)/10
* True cumulative probabilities from the generalized ordered logit
generate double p_ge1_true = invlogit(logit(0.40) + ln(1.8)*age10 + ln(3.0)*alone)
generate double p_ge2_true = invlogit(logit(0.08) + ln(1.8)*age10 + ln(1.0)*alone)
generate double u = runiform()
generate byte course = (u < p_ge1_true) + (u < p_ge2_true)
save "cap_course.dta", replace

Ordinal logistic regression and its predicted probabilities:

* Ordinal logistic regression: one odds ratio for every split
use "cap_course.dta", clear
tabulate course alone, column
ologit course age10 i.alone, or
* average predicted probability of each category, by living alone
margins alone, predict(outcome(0)) predict(outcome(1)) predict(outcome(2))

Checking proportional odds, by the split odds ratios and by oparallel:

* Proportional-odds check 1: the two split odds ratios, side by side
use "cap_course.dta", clear
generate byte ge1 = course >= 1
generate byte ge2 = course >= 2
logistic ge1 age10 i.alone
logistic ge2 age10 i.alone
* Check 2: omnibus Brant and LR tests after ologit (user-written)
* ssc install oparallel
quietly ologit course age10 i.alone
oparallel

A Wald test per variable, with built-in commands only:

use "cap_course.dta", clear
generate byte ge1 = course >= 1
generate byte ge2 = course >= 2
quietly logit ge1 age10 i.alone
estimates store cum_ge1
quietly logit ge2 age10 i.alone
estimates store cum_ge2
suest cum_ge1 cum_ge2
test [cum_ge1_ge1]1.alone = [cum_ge2_ge2]1.alone
test [cum_ge1_ge1]age10 = [cum_ge2_ge2]age10

Multinomial logistic regression, with the same contrasts as separate logits:

use "cap_course.dta", clear
mlogit course age10 i.alone, baseoutcome(0) rrr
margins alone, predict(outcome(0)) predict(outcome(1)) predict(outcome(2))
* The same two contrasts as separate binary logits, each on its own subsample
generate byte y1v0 = (course == 1) if inlist(course, 0, 1)
generate byte y2v0 = (course == 2) if inlist(course, 0, 2)
logit y1v0 age10 i.alone
logit y2v0 age10 i.alone

Partial proportional odds, and the three models side by side:

* gologit2 is user-written: ssc install gologit2
use "cap_course.dta", clear
gologit2 course age10 i.alone, autofit or
quietly ologit course age10 i.alone
estimates store m_ol
quietly gologit2 course age10 i.alone, autofit
estimates store m_ppo
quietly mlogit course age10 i.alone, baseoutcome(0)
estimates store m_ml
estimates stats m_ol m_ppo m_ml

R

R writes the ordinal model the other way round, so read the signs before comparing. MASS::polr fits

\[ \text{logit}\, P(Y \le j) = \zeta_j - \eta, \]

\[ \eta = x\beta \]

This is the same model as Stata's, written for the lower tail. Its slopes have the same sign as Stata's ologit (positive means higher categories), and its thresholds \(\zeta_j\) have the same values as Stata's /cut1 and /cut2. VGAM::cumulative() differs from Stata in two ways. First, its default, parallel = FALSE, is not the proportional odds model at all: every slope gets its own value at each split. Second, by default it models the lower tail, logit P(Y ≤ j) = α_j + xβ_j, so every slope has the opposite sign to Stata. cumulative(parallel = TRUE, reverse = TRUE), also available as VGAM::propodds(), is Stata's ologit; parallel = FALSE ~ alone with reverse = TRUE, as in the box below, is the partial model.

Both boxes start from a data frame named cap. Load the exported file cap_course.csv into it first.

# Ordinal (MASS::polr) and multinomial (nnet::multinom) logistic regression, same rows
# cap = the 1,000 rows of cap_course.csv, loaded as a data frame
cap$course_ord <- factor(cap$course, levels = 0:2, ordered = TRUE,
                         labels = c("Home", "Ward", "ICU_or_death"))
fit_po <- MASS::polr(course_ord ~ age10 + alone, data = cap, Hess = TRUE)
exp(coef(fit_po))   # odds ratios: same sign as Stata ologit
fit_po$zeta         # thresholds: same values as Stata /cut1 and /cut2
cap$course_nom <- factor(cap$course_ord, ordered = FALSE)
fit_ml <- nnet::multinom(course_nom ~ age10 + alone, data = cap, trace = FALSE, reltol = 1e-12)
exp(coef(fit_ml))   # RRRs against the first level, Home
# Partial proportional odds: age10 shared by both splits, alone free at each split
# cap = the 1,000 rows of cap_course.csv, loaded as a data frame
cap$course_ord <- factor(cap$course, levels = 0:2, ordered = TRUE)
fit_ppo <- VGAM::vglm(course_ord ~ age10 + alone,
                      family = VGAM::cumulative(parallel = FALSE ~ alone, reverse = TRUE),
                      data = cap)
exp(VGAM::coef(fit_ppo))   # alone:1 = split 1, alone:2 = split 2, age10 = both splits
# reverse = TRUE models P(Y >= j + 1), Stata's direction; without it every slope flips sign

R reproduces the Stata odds ratios, RRRs, predicted probabilities, AIC and BIC to the printed precision. The partial model differs only in the third decimal of a few interval limits, because gologit2 and VGAM use different optimisers.

Common misconceptions

  • "mlogit is just several separate logits."

    Not true. mlogit fits all \(K - 1\) contrasts in one likelihood with a shared base, and every patient's probabilities add up to 1. Separate logits on subsamples give close but not identical estimates and standard errors. In general they are less efficient, though not every standard error is larger in every data set.

    Fix: Report the joint model; use separate logits only to understand it.

  • "The ologit odds ratio is the effect on the top category."

    Not true. The odds ratio from ologit, or is one number claimed for every split, here both "admitted at all" and "ICU or death". If proportional odds fails, it can be a poor summary of at least one split; here 2.345 sits between 3.146 and 1.159, far above the split-2 estimate.

    Fix: Before reading the ordinal odds ratio as an effect on the worst outcome, check the split odds ratios.

  • "An RRR is a risk ratio."

    Not true. An RRR changes the ratio P(category) / P(base). Living alone has an RRR of 2.448 for ICU or death against home, although the proportion reaching ICU or death barely moves, because home empties.

    Fix: Name the base, and report predicted probabilities of each category next to the RRRs.

  • "mlogit has no assumptions."

    Not true. It needs independent observations, the right form for continuous predictors and enough patients in each category, and it carries IIA.

    Fix: Think about whether the categories could be substitutes; for fixed clinical states IIA is rarely a concern.

  • "A significant Brant or oparallel test means abandoning ordinal models."

    Not true. A significant test says that at least one variable breaks proportional odds, not that the order is useless. Here only living alone does.

    Fix: Look at the split odds ratios, decide which variable needs to be freed, and pre-specify a partial proportional odds model by naming in pl() the variables that stay parallel (gologit2 ..., pl(age10) or here: age stays parallel, living alone is freed); autofit can suggest candidates.

  • "mlogit is wrong for an ordered outcome."

    Not true. It is valid. It spends more parameters, ignores the order, and answers a question about each category against a base rather than about moving up the ladder.

    Fix: Choose it when the order does not matter for your question, not as a reflex when a test fails.

  • "An ordinal outcome means ologit, a nominal outcome means mlogit, and that settles it."

    Not true. Two questions choose the model: is there an order, and does one odds ratio per predictor hold at every split. Here the outcome is ordinal, yet ologit misses ICU or death for patients who live alone, 0.147 predicted against 0.106 observed.

    Fix: After "is there an order?", ask "does the promise hold?". If it does not, use partial proportional odds or mlogit.

  • "A small p value in the Brant or oparallel test means proportional odds holds."

    Not true. The null hypothesis is that the odds ratios are equal at every split, so a small p means the promise is broken. Here p is 0.0009, and the split odds ratios for living alone are 3.146 and 1.159.

    Fix: Read a small p as "broken", then look at the size of the gap between the split odds ratios.

  • "mlogit makes no promise, so use it every time."

    Not true. It costs predictor terms x (categories - 1) effect estimates, wider intervals and the loss of the order. For age, ologit gives one odds ratio, 1.969 (95% CI 1.785 to 2.173), where mlogit gives two, 1.919 (1.718 to 2.144) and 2.604 (2.139 to 3.171).

    Fix: Use mlogit when there is no order, or when the order does not matter for your question or most variables break the promise.

Glossary

Ordinal outcome
An outcome whose categories have a natural order, such as home, ward, ICU or death.
Nominal outcome
An outcome whose categories have no order, such as blood group.
Split (cumulative split)
A cut of an ordinal outcome into "this category or lower" against "higher than this category".
Cumulative odds
The odds of being above a split: P(Y > j) / P(Y ≤ j).
Proportional odds
The assumption that each predictor has the same odds ratio at every split; also called the parallel-lines or parallel-regression assumption.
Threshold (cut point)
The position of each split on the log-odds scale, /cut1 and /cut2 in Stata. In Stata's form it enters with a minus sign, so the split's intercept is −κ_j; this is why gologit2, which prints intercepts, shows them with the opposite sign. It positions the split; it is not an effect.
Partial proportional odds
An ordinal model in which some predictors keep one odds ratio across splits and others get one per split.
Base category (base outcome)
The category that every other category is compared with in multinomial logistic regression.
Relative-risk ratio (RRR)
exp(b) from multinomial logistic regression: the factor by which P(category) / P(base) changes per unit of the predictor. Not a risk ratio.
Independence of irrelevant alternatives (IIA)
The property of multinomial logistic regression that the odds of one category against another do not depend on the other categories available.
Predictive margin (average predicted probability)
The probability of a category predicted for every patient with one predictor set to the same value for all, then averaged (Stata margins alone). To average within each group as observed instead, use margins, over(alone).

References

  1. McCullagh P. Regression models for ordinal data. J R Stat Soc Series B Methodol. 1980;42(2):109-142.
  2. Brant R. Assessing proportionality in the proportional odds model for ordinal logistic regression. Biometrics. 1990;46(4):1171-1178.
  3. Williams R. Generalized ordered logit/partial proportional odds models for ordinal dependent variables. Stata J. 2006;6(1):58-82.
  4. Begg CB, Gray R. Calculation of polychotomous logistic regression parameters using individualized regressions. Biometrika. 1984;71(1):11-18.
  5. Cheng S, Long JS. Testing for IIA in the multinomial logit model. Sociol Methods Res. 2007;35(4):583-600.
  6. Hosmer DW, Lemeshow S, Sturdivant RX. Applied Logistic Regression. 3rd ed. Hoboken, NJ: Wiley; 2013.
  7. Agresti A. Analysis of Ordinal Categorical Data. 2nd ed. Hoboken, NJ: Wiley; 2010.
  8. Long JS, Freese J. Regression Models for Categorical Dependent Variables Using Stata. 3rd ed. College Station, TX: Stata Press; 2014.

Key takeaways

  • A three-step ordered outcome becomes exactly two yes/no questions, the cumulative splits: admitted at all, and reached the top step. K ordered steps give K - 1 splits, and one ordinary logistic regression per split gives each predictor two odds ratios.
  • ologit reports one odds ratio per predictor because it promises the split odds ratios are equal (proportional odds). Age keeps the promise (2.023 and 1.879; ologit 1.969); living alone breaks it (3.146 and 1.159; ologit 2.345).
  • A broken promise pushes predictions the wrong way. The compromise moves too few patients who live alone across split 1 and too many across split 2: 0.147 predicted in the ICU or dead against 0.106 observed.
  • When the promise breaks there are two ways out. mlogit frees everything, at the price of predictor terms x (categories - 1) estimates, wider intervals and the lost order, and its RRRs depend on the base. It can be used for an ordered outcome, and an ordered outcome does not make ologit right by itself. Partial proportional odds keeps the splits and frees only the culprit (age 2.001; living alone 3.075 and 1.139), with the lowest AIC and BIC, as expected for data built from that model.
  • Proportional-odds tests take "the promise holds" as their null, so a small p means broken. Here living alone fails (p = 0.0002) and age shows no clear departure (p = 0.4183); judge the size of the gap too. Then choose with two questions, not one: is there an order, and does the promise hold?

Related in the wiki: Why Do Logistic and Conditional Logistic Regression Give Different Odds Ratios? · Which Regression Model? A Decision Flow from Study Design and Outcome (Y) to the Stata Command · Fitting Regression Models in Stata by Outcome Type: Syntax and What Each Coefficient Means · Checking a Regression Model: Assumptions, Diagnostics and What to Do When They Fail

0
Message for International and Thai ReadersUnderstanding My Medical Context in ThailandRead more →Message for International and Thai ReadersUnderstanding My Broader Content Beyond MedicineRead more →

Comments

No comments yet. Be the first to share your thoughts.

Sign in to comment