Dear All,
Please, I have the following kind of panel:
And I would like to transform it into:
freqm correspond to a value between 0-100 for attendance per month. So each column corresponds to the attendance per month (excluding January and December). But in the first data set some same IDs and years repeat themselves because some months are in one row and others in other rows.
I want to organise this panel. Could anyone help me, please?
Please, I have the following kind of panel:
Code:
* Example generated by -dataex-. For more info, type help dataex clear input float(ID Year freqm2 freqm3 freqm4 freqm5 freqm6 freqm7 freqm8 freqm9 freqm10 freqm11) 98 2002 91 4 20 . . 75 64 80 17 77 52 2001 53 . 70 . . . . 71 . . 42 2000 15 34 55 48 94 . . 78 44 52 83 2001 5 . . . 64 55 56 26 57 59 75 2002 . . . . . . 76 32 . 92 75 2002 3 5 7 18 22 90 76 32 88 92 98 2002 . . . 14 25 . . . . . 98 2003 10 5 . . . . . . . 3 98 2003 . . 52 36 87 95 0 47 . . end
Code:
* Example generated by -dataex-. For more info, type help dataex clear input byte id int year byte(freqm2 freqm3 freqm4 freqm5 freqm6 freqm7 freqm8 freqm9 freqm10 freqm11) 98 2002 91 4 20 14 25 75 64 80 17 77 52 2001 53 . 70 . . . . 71 . . 42 2000 15 34 55 48 94 . . 78 44 52 83 2001 5 . . . 64 55 56 26 57 59 75 2002 . . . . . . 76 32 . 92 75 2002 3 5 7 18 22 90 76 32 88 92 98 2003 10 5 52 36 87 95 0 47 . 3 end
I want to organise this panel. Could anyone help me, please?
Comment