From | "Nick Cox" <[email protected]> |
To | <[email protected]> |
Subject | st: RE: RE: outfile-ing multiple lines |
Date | Fri, 20 Sep 2002 15:05:49 +0100 |
Second try at code: . preserve . expand 3 . bysort id counter : replace y1 = y2[1] if _n == 2 . by id counter : replace y1 = y3[1] if _n == 3 . by id counter : replace x2 = x3[1] if _n == 2 . by id counter : replace x2 = x4[1] if _n == 3 . outfile id counter y1 x1 x2 ... . restore Nick [email protected] * * 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–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |