Bookmark and Share

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


[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" <[email protected]>
To   [email protected]
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


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
UNITED KINGDOM
Tel: +44 (0)20 7352 8121 ext 3381
Fax: +44 (0)20 7351 8322
Email: [email protected]
Web page: http://www.imperial.ac.uk/nhli/r.newson/
Departmental Web page:
http://www1.imperial.ac.uk/medicine/about/divisions/nhli/respiration/popgenetics/reph/

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.

Scott


On Wed, Aug 29, 2012 at 12:13 PM, natalia malancu
<[email protected]> 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?

Best,
Natalia
*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


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