Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: Nested logit


From   "Tulika Narayan" <Tulika_Narayan@abtassoc.com>
To   statalist@hsphsun2.harvard.edu
Subject   st: Nested logit
Date   Thu, 2 Sep 2004 16:17:07 -0400

I am trying to run a nested logit model and was not sure about the
data format to do that. If I have a choice variable =1,2,3
then my data are in the following format:

id   choice
1     1
2     3
3     1
4     2

However, it seems like the data need it to be in this format:

id    choice  chosen
1       1        1
1       2        0
1       3        0
2       1        0
2       2        0
2       3        1
3       1        1
3       2        0
3       3        0
4       1        0
4       2        1
4       3        0

If this is the case, how do I get my data in this format? Is this
data format necessary?
Thanks. It turns out I have never run nlogit, only mlogits and many
other things!!
Tulika








*
*   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/



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