Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: st: margins & marginsplot when multiple outcomes are involved

From   "Roger B. Newson" <>
Subject   Re: st: margins & marginsplot when multiple outcomes are involved
Date   Wed, 29 Aug 2012 21:02:53 +0100

Presumably, you could use -margins- (with the -post- option), followed by -nlcom-, to calculate scenario-specific odds. I don't know why anybody should want to do this, though.

Odds are usually a means to the end of probabilities, not the other way round. My own packages -punaf-, -regpar-, -margprev- and -marglmean- are front ends for -margins- and -nlcom-, and can be used to compute scenario proportions and their differences and ratios after -mlogit-, using the -predict()- option.

Best wishes


Roger B Newson BSc MSc DPhil
Lecturer in Medical Statistics
Respiratory Epidemiology and Public Health Group
National Heart and Lung Institute
Imperial College London
Royal Brompton Campus
Room 33, Emmanuel Kaye Building
1B Manresa Road
London SW3 6LR
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Web page:
Departmental Web page:

Opinions expressed are those of the author, not of the institution.

On 29/08/2012 20:37, Scott Merryman wrote:
Are relative odds the same thing as odds ratio?  Can you use the
probabilities in the margin0, margin1, and margin2 variables from my
example to calculate the odds?

Perhaps someone with actual experience using -mlogit- and odds can help out.


On Wed, Aug 29, 2012 at 12:13 PM, natalia malancu
<> wrote:
Thank you so much, Scott.
Meanwhile I  found a route using matrices, but your solution far more
elegant and fast.
One more question though: Is there a way is this context to use
relative odds rather than probabilities in the response?

*   For searches and help try:

*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index