| ![]() |
From | jean ries <jean.ries@gmail.com> |
To | statalist@hsphsun2.harvard.edu |
Subject | RE: st: data management for nlogit |
Date | Mon, 27 Feb 2006 17:49:58 +0100 |
You should have a look at the -fillin- command: . fillin id resto . gen choice = 1 - _fillin Raja Chakir wrote: > 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 * * 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–2025 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |