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]

st: Re: nlogit / asclogit replicate choice-alternatives per case


From   syntegrity <[email protected]>
To   [email protected]
Subject   st: Re: nlogit / asclogit replicate choice-alternatives per case
Date   Thu, 30 Jan 2014 23:10:30 -0800 (PST)

I've been looking around the web for an answer to this problem myself, and
divined the answer by scrutinizing the restaurant example data set in the
nlogit helpfile and comparing it with my own data set. Hopefully I can save
you having to go to the same trouble!

The problem is probably in your nlogittree structure. You probably have the
wrong variable included for one of the levels in your tree diagram. I'm
guessing its the lowest level, as that was my error. The lowest level of
your branch structure (i.e. the first variable you specify after the
nlogittree command) should be *the list of alternatives*. That means that it
lists a different alternative in every row, repeating the same list of
alternatives over and over again for each case in your data set.
<http://statalist.1588530.n2.nabble.com/file/n7580474/nested_logit_2nd_case2vars_stata_output013.jpg> 
In the example above, it is the variable *restaurant* that is the lowest
level of the branch structure.

Hope that helps!

Best,
Chris Congleton



--
View this message in context: http://statalist.1588530.n2.nabble.com/nlogit-asclogit-replicate-choice-alternatives-per-case-tp5797754p7580474.html
Sent from the Statalist mailing list archive at Nabble.com.
*
*   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/


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