Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

st: Reshape data from wide to long format


From   "Shittu, Aminu" <[email protected]>
To   "[email protected]" <[email protected]>
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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index