Hi all,
I am doing a research on measuring banking competition across EU28 countries. I was trying to reshape the dataset from wide to long but it was not successful. I have tried the following command:
OR
Basically, an error "variable id does not uniquely identify the observations " came up. I have tried to look at other posts in the forum but it does not seem to apply to my cases. May anyone gives me some advice? I will be very appreciated.
I want the dataset to look like the following:
Best regards and many thanks,
Cedric
I am doing a research on measuring banking competition across EU28 countries. I was trying to reshape the dataset from wide to long but it was not successful. I have tried the following command:
Code:
reshape long roaa tr, i(id) j(year)
Code:
reshape long roaa tr, i(bankname country) j(year)
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input int id str11 country str159 bankname double(roaa2016 roaa2015 roaa2014 roaa2013 roaa2012 roaa2011) long(tr2016 tr2015 tr2014 tr2013 tr2012 tr2011) 1 "Austria" "3-Banken Wohnbaubank AG" .0009 .0012 .001 . . . 271 280 353 . . . 2 "Austria" "A1 Bank AG" .0627 -.0139 -.0684 -.0545 .0027 .0217 11703 8709 10246 10233 8994 9174 3 "Austria" "ABS Factoring Bank AG" .0054 .0319 .0134 .0154 . . 3856 6064 6055 7242 . . 4 "Austria" "AirPlus Air Travel Card Vertriebsgesellschaft m.b.H." .0696 .0633 .0611 .0524 . . 8442 8504 9757 11023 . . 5 "Austria" "Allgemeine Sparkasse Ober”sterreich Bank AG" .0017 .0053 .0017 .0037 .0039 .0026 262682 290356 248891 314435 277866 240277 6 "Austria" "Alpenlaendische Garantie -Gesellschaft M.B.H." . . . . . .0001 66 . . 124 65 89 7 "Austria" "Austrian Anadi Bank AG" .0034 .0012 .0002 .0013 .01 .0013 67522 68994 64074 82783 87550 97515 8 "Austria" "Autobank AG" .0003 .0001 0 -.0029 0 .0017 10036 9922 11136 8439 8135 9981 9 "Austria" "Banco do Brasil AG" -.0134 -.0089 .007 .0052 . . 10126 19625 52707 31918 . . 10 "Austria" "Bank Austria Creditanstalt AG" . .002 -.016 -.0134 -.0025 -.004 . 3194147 1343306 878307 2023218 1832307 end
Code:
AND SO ON
id country bankname year roaa tr 1 Austria 3-Banken Wohnbaubank AG 2011 1 Austria 3-Banken Wohnbaubank AG 2012 1 Austria 3-Banken Wohnbaubank AG 2013 1 Austria 3-Banken Wohnbaubank AG 2014 1 Austria 3-Banken Wohnbaubank AG 2015 1 Austria 3-Banken Wohnbaubank AG 2016
Best regards and many thanks,
Cedric
Comment