Dear Statalisters
I have a Demographic and Health Survey dataset (see variables below)
which I would like to reshape from wide to long format. Any assistance
would be much appreciated
str caseid 1: 1-15
long v005 1: 38-45
byte v006 1: 46-47
int v007 1: 48-51
int v008 1: 52-55
byte b1_01 1: 222-223
int b2_01 1: 224-227
int b3_01 1: 228-231
byte b4_01 1: 232-232
byte b5_01 1: 233-233
int b6_01 1: 234-236
int b7_01 1: 237-239
byte b1_02 1: 259-260
int b2_02 1: 261-264
int b3_02 1: 265-268
byte b4_02 1: 269-269
byte b5_02 1: 270-270
int b6_02 1: 271-273
int b7_02 1: 274-276
byte b1_03 1: 296-297
int b2_03 1: 298-301
int b3_03 1: 302-305
byte b4_03 1: 306-306
byte b5_03 1: 307-307
int b6_03 1: 308-310
int b7_03 1: 311-313
Many thanks
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Ifakara Health Research & Development Centre,
Mikocheni Office - Kiko Rd,
P.O.Box 78373,
Dar es Salaam,
Tanzania.
T:+255 22 2774756 (Ext 108)
T:+255 22 2774709 (Ext 108)
F:+255 22 2771714
C:+255 784 60 50 46
email : [email protected]
website: www.ihrdc.org
[email protected]
*
* 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/