[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

From |
sara borelli <saraborelli77@yahoo.it> |

To |
statalist@hsphsun2.harvard.edu |

Subject |
Re: st: reshape question |

Date |
Thu, 22 May 2008 10:20:13 +0000 (GMT) |

Friedrich, it works, thank you very much Sara --- Mer 21/5/08, Friedrich Huebler <fhuebler@gmail.com> ha scritto: > Da: Friedrich Huebler <fhuebler@gmail.com> > Oggetto: Re: st: reshape question > A: statalist@hsphsun2.harvard.edu > Data: Mercoledì 21 maggio 2008, 20:39 > Sara, > > Try this: > > reshape long x@_24, i(id) j(year) string > > Friedrich > > On Wed, May 21, 2008 at 2:12 PM, sara borelli > <saraborelli77@yahoo.it> wrote: > > Dear members, > > > > I have a dataset in wide format where the variables > are > > > > id x73_24 x74_24 x75_24 x87_24 x99_24 > x00_24 > > ... ... ... ... ... ... > ... > > > > where the first two numbers in, for example, x73_24 > indicate the year. It is a variable indicating whether > there are less than 24 crimes in 1973 in city id; x00_24 > indicates whether there are less than 24 crimes in 2000 in > city id, and so on... > > > > > > I have specified > > reshape long x@_24, i(id), j(year) > > after reshape stata displays > > note: j=0 73 74 75 87 99 > > note: x0_24 not found > > > > > > if instead I write > > reshape long x@_24, i(id), j(year 73-75 87 99 00) > > > > stata does not give that messagge. Is this because > stata does read "00" as a "0" and thus > does not recognize any x0_24? > > And would be correct to apply the second > specification? Looking at that the data it seems correct to > me but I would like to be sure > > > > Thank you for any help > > Sara Borelli > * > * 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/ ___________________________________ Scopri il Blog di Yahoo! Mail: trucchi, novità, consigli... e la tua opinione! http://www.ymailblogit.com/blog/ * * 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/

**References**:**Re: st: reshape question***From:*"Friedrich Huebler" <fhuebler@gmail.com>

- Prev by Date:
**Re: st: -merge- which one would make sense?** - Next by Date:
**st: instrumental variable for quantile regression** - Previous by thread:
**Re: st: reshape question** - Next by thread:
**st: Collpasing Data by every 4 observations** - Index(es):

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