Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.
From | Richard Williams <richardwilliams.ndu@gmail.com> |
To | statalist@hsphsun2.harvard.edu, "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Estimating MNL model |
Date | Fri, 11 Oct 2013 17:19:49 -0400 |
At 04:57 PM 10/11/2013, Nabin Kafle wrote:
I have a data set which has four choices, people choosing between car, rail, auto and air. The choice of an alternate is affected by the availability of the alternate (if air, rail, bus and car is available to them or not), travel time and travel cost and age of the person. I need to estimate the utility function for a person for choosing each alternate. I could do it using biogeme but I am not sure how to do it in stata.
I would get the Long and Freese book. But see also http://rt.uits.iu.edu/visualization/analytics/docs/cdvm-docs/cdvm7.php http://data.princeton.edu/wws509/stata/c6s3.html http://userwww.service.emory.edu/~poldd/clogit.pdf http://www.philender.com/courses/categorical/notes2/clogit.htmlAlso look at the asclogit command. I can't vouch for the above sources but they seem to be talking about the sorts of things you want.
The utility function would be Vi,bus= constant+ B1*time+ B2*cost (assuming this is the base choice) Vi, car= constant + B3*time + B4*cost + B5* age Vi, air = constant + B6* time + B7* cost + B8*age Vi, rail = constant + B9* time + B10* cost + B11* age On Fri, Oct 11, 2013 at 4:15 PM, Richard Williams <richardwilliams.ndu@gmail.com> wrote: > Like Maarten, I am not totally sure what you want. But, Long and Freese do > have an entire chapter on "Models for nominal outcomes with alternative > specific data." Among other things they talk about the clogit command. They> also describe various utilities for setting the data up and interpreting the> results. > > For more, see >> http://www.stata.com/bookstore/regression-models-categorical-dependent-variables/> > See especially chapter 7 and maybe chapter 6. My best guess is that you > especially want > > 7.2.5 Using clogit with case- and alternative-specific variables > > > If you type -findit spost9- you can get the programs used in the book. > > If this isn't the sort of thing you are looking for, then please provide > additional details. > > As a sidelight I have read various descriptions of the clogit command --> Long & Freese's, and using clogit for fixed effects models -- and it sort of> amazes me that they are talking about the same command, as the uses seem > radically different. > > > At 11:23 AM 10/11/2013, Nabin Kafle wrote: >> >> How can I estimate MNL moedl in stata with alternate specific and >> generic variables. What would be the command to describe them and run >> the model. Thanks in advance >> >> -- >> Nabin Kafle >> * >> * For searches and help try: >> * http://www.stata.com/help.cgi?search >> * http://www.stata.com/support/faqs/resources/statalist-faq/ >> * http://www.ats.ucla.edu/stat/stata/ > > > ------------------------------------------- > Richard Williams, Notre Dame Dept of Sociology > OFFICE: (574)631-6668, (574)631-6463 > HOME: (574)289-5227 > EMAIL: Richard.A.Williams.5@ND.Edu > WWW: http://www.nd.edu/~rwilliam > > > * > * For searches and help try: > * http://www.stata.com/help.cgi?search > * http://www.stata.com/support/faqs/resources/statalist-faq/ > * http://www.ats.ucla.edu/stat/stata/ -- Nabin Kafle * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/
------------------------------------------- Richard Williams, Notre Dame Dept of Sociology OFFICE: (574)631-6668, (574)631-6463 HOME: (574)289-5227 EMAIL: Richard.A.Williams.5@ND.Edu WWW: http://www.nd.edu/~rwilliam * * For searches and help try: * http://www.stata.com/help.cgi?search * http://www.stata.com/support/faqs/resources/statalist-faq/ * http://www.ats.ucla.edu/stat/stata/