I m trying to reshape my data where I am having a problem with multiple observations per ID according to a second variable.
the idea is to have one id with name and sector variations like in wide format.
Data example is uploaded in attachment (Sheet1-original data).
there are almost 70000 of observations in my original big dataset.
Stata outcome results:
1. reshape wide name, i(id) j(sector) string
(note: j = COMPANY UNIVERSITY UNIVERSITY COLLEGE UNIVERSITY RESEARCH CENTRE UNIVERSITY_FOR)
dup not constant within id
Type "reshape error" for a listing of the problem observations.
I found also here topic "Multiple observations per ID according to a second variable" - http://www.statalist.org/forums/foru...econd-variable, but its not working for me as i dont have numbers.
Could you please help me to solve this problem.
I attached the example of how it should look for me (attachment: Sheet2- wanted change).
thank you for help
the idea is to have one id with name and sector variations like in wide format.
Data example is uploaded in attachment (Sheet1-original data).
there are almost 70000 of observations in my original big dataset.
Stata outcome results:
1. reshape wide name, i(id) j(sector) string
(note: j = COMPANY UNIVERSITY UNIVERSITY COLLEGE UNIVERSITY RESEARCH CENTRE UNIVERSITY_FOR)
dup not constant within id
Type "reshape error" for a listing of the problem observations.
I found also here topic "Multiple observations per ID according to a second variable" - http://www.statalist.org/forums/foru...econd-variable, but its not working for me as i dont have numbers.
Could you please help me to solve this problem.
I attached the example of how it should look for me (attachment: Sheet2- wanted change).
thank you for help
Comment