Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Reshape data from wide to long format


From   "Shittu, Aminu" <ameen_vet@yahoo.com>
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: Reshape data from wide to long format
Date   Mon, 24 Sep 2012 04:56:06 -0700 (PDT)

Dear Statalisters,

I am trying some examples from online help but all in vain. My wide dataset looks like this one

Species  Country  Year  month1  month2  month3  month4  month5  month6  month7  month8  month9  month10  month11  month12
 
I am interested in converting it to a long format like this
 
Species  Country  Year  month incidence
 
Please note that the record for each month is a disease incidence.
 
Thanks
 
Aminu

*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   http://www.stata.com/support/statalist/faq
*   http://www.ats.ucla.edu/stat/stata/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index