Hi,
As the title suggests I am having a problem where I have multiple observations per ID according to a second variable.
My data looks roughly like this:
ID M ME
1 1 30
1 1 30
1 1 30
1 1 30
1 2 45
2 3 60
2 3 60
2 3 60
2 3 60
I am basically trying to reshape my data from long to wide but it says my j() isn't unique within i. How do I fix this?
As the title suggests I am having a problem where I have multiple observations per ID according to a second variable.
My data looks roughly like this:
ID M ME
1 1 30
1 1 30
1 1 30
1 1 30
1 2 45
2 3 60
2 3 60
2 3 60
2 3 60
I am basically trying to reshape my data from long to wide but it says my j() isn't unique within i. How do I fix this?
Comment