Hi, I have an unusual table I would like to reshape long where the first column represents the identifier "AEA000101013" and so on. The second column the year. The third column the month. The rest of the columns would be the variables' names which are "Dividend Yield - Common - Net - Issue - %" and "Asset Turnover". I could not find any satisfactory answer in previous comments about reshaping.
Please find a piece of the data below.
Please find a piece of the data below.
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str18 v1 str41 v2 str16 v3 str46 v4 str22 v5 "A" "AEA000101013" "C" "BBF000101901" "E" "" "Dividend Yield - Common - Net - Issue - %" "Asset Turnover" "Dividend Yield - Common - Net - Issue - %" "Asset Turnover" "Date" "" "" "" "" "31dec1998 00:00:00" "1" ".3" "2" ".01" "31dec1999 00:00:00" "5" ".01" "0" ".3" "31mar2000 00:00:00" "" "" "" "" "30jun2000 00:00:00" "" "" "" "" "31aug2000 00:00:00" "" "" "" "" "30sep2000 00:00:00" "" "" "" "" "31oct2000 00:00:00" "" "" "" "" "31dec2000 00:00:00" "4.8" ".21" "1.1" ".03" "31mar2001 00:00:00" "" "" "" "" "30jun2001 00:00:00" "" "" "" "" "31aug2001 00:00:00" "" "" "" "" "30sep2001 00:00:00" "" "" "" "" "31oct2001 00:00:00" "" "" "" "" "31dec2001 00:00:00" "0" ".11" "8" ".23" end
Comment