[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
"Maarten Buis" <M.Buis@fsw.vu.nl> |

To |
<statalist@hsphsun2.harvard.edu> |

Subject |
st: RE: Classification after mlogit |

Date |
Fri, 25 Nov 2005 19:06:52 +0100 |

Dear Sumon, A (substantively nonsensical) example is shown below. *--------------example---------------- sysuse auto, clear recode rep78 1=3 2=3 mlogit rep78 foreign mpg price predict p1 p2 p3 /*predicted probabilities of group membership*/ /*someone is a member of group 1 if his predicted probability for group one is higher than his predicted probability of for group 2 and 3*/ gen g = 3 if p1>p2 & p1>p3 /*someone is a member of group 2 if his predicted probability for group one is higher than his predicted probability of for group 1 and 3*/ replace g = 4 if p2>p1 & p2>p3 /*someone is a member of group 3 if his predicted probability for group one is higher than his predicted probability of for group 1 and 2*/ replace g = 5 if p3>p2 & p3>p1 tab g rep78 *-------------end example------------- HTH, Maarten Ps. We don't send answers to questions privately because that way someone with a similar question in the future cannot find the answer, as you have experienced. ----------------------------------------- Maarten L. Buis Department of Social Research Methodology Vrije Universiteit Amsterdam Boelelaan 1081 1081 HV Amsterdam The Netherlands visiting adress: Buitenveldertselaan 3 (Metropolitan), room Z214 +31 20 5986715 http://home.fsw.vu.nl/m.buis/ ----------------------------------------- > -----Original Message----- > From: owner-statalist@hsphsun2.harvard.edu [mailto:owner-statalist@hsphsun2.harvard.edu]On Behalf Of Sumon Bhaumik > Sent: vrijdag 25 november 2005 18:27 > To: K.McCaul@curtin.edu.au > Cc: statalist@hsphsun2.harvard.edu > Subject: st: Classification after mlogit > I came across your email to the Stata help list, dated April 19, 2004. Have you been able to figure out since how to obtain a classification list after using mlogit in Stata 8? I would really > appreciate some help regarding this matter. > P.S. If any Stata user can help me with this, please send me an email at Sumon.Bhaumik@brunel.ac.uk. * * For searches and help try: * http://www.stata.com/support/faqs/res/findit.html * http://www.stata.com/support/statalist/faq * http://www.ats.ucla.edu/stat/stata/

- Prev by Date:
**st: Classification after mlogit** - Next by Date:
**RE: st: string functions on the name of a variable** - Previous by thread:
**st: Classification after mlogit** - Next by thread:
**st: How to import help file (dictionary file)** - Index(es):

© Copyright 1996–2015 StataCorp LP | Terms of use | Privacy | Contact us | What's new | Site index |