turn on suggestions

Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.

Showing results for

- JMP User Community
- :
- Discussions
- :
- Discussions
- :
- Logistic regression with multiple outcome variable...

Topic Options

- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 16, 2012 3:45 PM
(8450 views)

2 ACCEPTED SOLUTIONS

Accepted Solutions

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 17, 2012 7:09 AM
(11339 views)

Solution

If you have more than two levels in the response variables, then you are using ordinal or nominal logistic regression. In both of these cases, the cumulative logits or generalized logits, respecitvely, use the last level for the odds, so it cannot estimated. So if you have k levels, then there are k-1 logits with their associated parameters.

The best way to interpret these logits is either by odds ratios (relative to the last level) or with a specific visualization, such as the prediction profiler in JMP.

Learn it once, use it forever!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 17, 2012 8:55 AM
(11338 views)

Solution

I must admit that I do not know the subset of JMP features that are available in the student version, but please try these suggestions and let me know what you find.

1. Using Fit Y by X, you launch a Logistic platform. You already foiund the p-values for the Wald tests to judge significance. Click the red triangle at the top of the window and select Odds Ratios. Two of them appear to the right of the parameter estimates and the p-values. The **Unit Odds Ratio** is the ratio for 1 unit change in the predictor. The other **Odds Ratio** is for the change over the whole range (minimum to maximum) of your predictor.

(Note: if you launch Logistic with multiple responses, you will get parallel models in the same window. Try this: press and hold the CTRL on Windows or Command on Macintosh, and then click the red triangle. This way the odds ratios will be computed for all of the responses, instead of asking one response at a time. This trick is called *broadcasting* and works with most features in JMP!)

2. Alternatively, select Analyze > Fit Model. Assign your responses to the Y role and add your predictor to the effects list. Click the Run button and you should get the same basic analysis as you did from Logistic, but with importance differences. The parameter estimates use likelihood ratio tests instead of Wald tests. Also, click the red triangle at the top and select Profilers > Profiler. It will appear at the bottom of the window. Now the profiler shows you the predicted probabilities of each response level. You can estimate the probabilities under some reference level of the predictor, then estimate the probabilites under other conditions and form any odds ratio that you might need.

There are many more features in the Logistic and the Nominal Logisitic Fit platforms, but I don't want to overwhelm you all at once. Please let me know if this explanation was helpful, or if you have any more difficulty or questions.

Learn it once, use it forever!

20 REPLIES

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 17, 2012 7:09 AM
(11340 views)

If you have more than two levels in the response variables, then you are using ordinal or nominal logistic regression. In both of these cases, the cumulative logits or generalized logits, respecitvely, use the last level for the odds, so it cannot estimated. So if you have k levels, then there are k-1 logits with their associated parameters.

The best way to interpret these logits is either by odds ratios (relative to the last level) or with a specific visualization, such as the prediction profiler in JMP.

Learn it once, use it forever!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 17, 2012 8:22 AM
(6644 views)

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

May 17, 2012 8:55 AM
(11339 views)

I must admit that I do not know the subset of JMP features that are available in the student version, but please try these suggestions and let me know what you find.

1. Using Fit Y by X, you launch a Logistic platform. You already foiund the p-values for the Wald tests to judge significance. Click the red triangle at the top of the window and select Odds Ratios. Two of them appear to the right of the parameter estimates and the p-values. The **Unit Odds Ratio** is the ratio for 1 unit change in the predictor. The other **Odds Ratio** is for the change over the whole range (minimum to maximum) of your predictor.

(Note: if you launch Logistic with multiple responses, you will get parallel models in the same window. Try this: press and hold the CTRL on Windows or Command on Macintosh, and then click the red triangle. This way the odds ratios will be computed for all of the responses, instead of asking one response at a time. This trick is called *broadcasting* and works with most features in JMP!)

2. Alternatively, select Analyze > Fit Model. Assign your responses to the Y role and add your predictor to the effects list. Click the Run button and you should get the same basic analysis as you did from Logistic, but with importance differences. The parameter estimates use likelihood ratio tests instead of Wald tests. Also, click the red triangle at the top and select Profilers > Profiler. It will appear at the bottom of the window. Now the profiler shows you the predicted probabilities of each response level. You can estimate the probabilities under some reference level of the predictor, then estimate the probabilites under other conditions and form any odds ratio that you might need.

There are many more features in the Logistic and the Nominal Logisitic Fit platforms, but I don't want to overwhelm you all at once. Please let me know if this explanation was helpful, or if you have any more difficulty or questions.

Learn it once, use it forever!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 15, 2017 6:15 PM
(6238 views)

I am running a multiple multinomial logisitc regression and am unable to get JMP to compute the odds ratios as is shown in tutorials using canned data sets.

Following the above instructions:

When I use fit Y by X (broadcasted or not) the odds ratio option does not come up (see first and second screen shots below).

I can find the profiler, but I am really looking for odds ratios so that I can compare them to ones I already computed by hand (see third screen shot on right).

Has anyone else had this problem? Were you ever able to get JMP to compute odds ratios for a multiple multinomial logistic?

Thanks for your help!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 16, 2017 6:30 AM
(6227 views)

The odds ratios are available in both the **Logistic** platform (starting with Fit Y by X) and the **Nominal Logistic Fit** platform (starting with Fit Model). Using the tutorial example that you cited above, I get this result using the first platform:

I get this result using the second platform:

Note that odds ratios are only available for a nominal response.

Learn it once, use it forever!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 16, 2017 6:38 AM
(6225 views)

I think I know what the problem is, The example that you cited has a binary outcome. It sounds, however, like your data has more than two levels. JMP does not compute the odds ratios in such a case. You can save the probability formulas, though, and compute the odds and then the odds ratios with them.

Learn it once, use it forever!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 16, 2017 8:51 AM
(6214 views)

Dear Mark,

Thanks for your help! I certainly wish JMP did this automatically. Maybe in version 14 :)

When I save the prob formulas I get the following columns

Lin [F] Lin [B] Prob [F] Prob [B] Prob [M] Most likely outcome

Where F, B, and M are my outcomes and M is the reference category.

Questions:

What are the Lin[ ] columns telling me?

Computing this for binary logisitc regression wouldn't be all that hard, but here I think it is a bit trickier.

How do I

- compute the odds for each individual?

- compute the odds for each outcome category group?

Once I have the odds for each outcome group I simply divide these by the combined odds for the refernce group to get the odds ratios (of F compared to M, for example). Is that correct?

Thanks for sharing your statistical know-how!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 16, 2017 9:20 AM
(6211 views)

The Lin[X] columns contain the linear predictor for the logit function that you fit. If you examine the formula, you will see the same parameter estimates as were shown in the logistic regression results. You don't need it unless you need the logit!

The linear predictor is, n turn, used to compute the probability of each response level as Prob[X]. (It comes from solving log( p / (1-p) ) = Lin[X] for p.) This probability is most useful for your purpose. Note that if you select Graph > Profiler and select Prob[X], be sure to enable the feature to expand the intermediate formulas, otherwise you will profile against Lin[X] instead of the actual predictor variable.

You can use the Prob[X] columns in new column formulas to compute any odds that you want as Prob[X1] divided by Prob[X2]. Likewise, you can then compute any odds ratio that you want from the odds derived this way.

Learn it once, use it forever!

- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Get Direct Link
- Email to a Friend
- Report Inappropriate Content

Mar 16, 2017 1:17 PM
(6199 views)

I see! Thank you!

A follow up~

When I use the Prob[X] columns to compute odds t(Prob[X1] divided by Prob[X2]) that will give me the odds for that **individual**, correct?

When I report this in a paper I will need to report the odds for each group and the odds ratio for compared groups (F treated compared to M treated or untreated, for exmaple).

When computing group odds do I simply **average the odds** for that group?

I realize this is more of a statistics question than for JMP per say, but most programs calculate group odds so I can't find other documentation on how to do it by hand. Thank you!