Monday, February 27, 2006
st: data management for nlogit
I have a data set that I would like to analyze with a nested logit (nlogit) model.
The data set looks like:
id resto 1 A 2 A 3 B
I want the get the data that looks like:
id resto choice 1 A 1 1 B 0 2 A 1 2 B 0 3 A 0 3 B 1
Thank you very much for any help.
* * 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/
Links to this post: