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

st: reshape question

From   sara borelli <[email protected]>
To   [email protected]
Subject   st: reshape question
Date   Wed, 21 May 2008 18:12:40 +0000 (GMT)

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

Scopri il Blog di Yahoo! Mail: trucchi, novit´┐Ż, consigli... e la tua opinione!

*   For searches and help try:

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