From | Ernest Berkhout <ernestb@seo.fee.uva.nl> |
To | statalist@hsphsun2.harvard.edu, <statalist@hsphsun2.harvard.edu> |
Subject | Re: st: Re: Reshape |
Date | Tue, 10 Feb 2004 15:26:49 +0100 |
----- Original Message -----
From: <absc11@bangor.ac.uk> To: <statalist@hsphsun2.harvard.edu> Sent: Tuesday, February 10, 2004 3:04 PM Subject: st: Reshape > Dear statalisters, > > I have the following data format: > > code country industry x1_90 x1_91 ... x1_99 x2_90 x2_91 ... x2_99 x3_90 etc > n1 UK GEN . . ... . . . ... . . > n2 SP BIO . . ... . . . ... . . > n3 NL SUP . . ... . . . ... . .
And an (incorrect) suggestion was:
That is why this goes wrong often: people (including myself) sometimes forget to explicitly specify the underscores when reshaping from wide to long. The earlier suggestions by Nick & Edwin should work, though.I think you should do reshape long x1 x2...., i(code country industry) j(year 90-99)
© Copyright 1996–2023 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |