Dears;
I have time series data of 220 companies in rows (Each row for each company for same date), please help me how to convert this data into single column with an extra panel variable.
I have time series data of 220 companies in rows (Each row for each company for same date), please help me how to convert this data into single column with an extra panel variable.
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input str10 name float(nestlepakistan pakistantobacco engro karachielectricsupp) str6 luckycement float(marigas mcbbank) "1/16/1997" 70 32.5 25.56 19.18 "NA" 7.17 5.91 "2/16/1997" 70.67 37.46 29.63 23.12 "NA" 9.33 7.47 "3/16/1997" 73.33 37.01 33.33 17.71 "NA" 8.17 6.88 "4/16/1997" 70.67 29.34 34.95 15.25 "NA" 7.83 6.2 "5/16/1997" 72.67 27.62 35.88 14.71 "NA" 7.25 6.33 end
Comment