Hello,
I have the following dataset listed in the attachment.
I am trying to reshape the data so that the years are the variables and the country names are the observations, therefore, I need to use reshape wide. However, I am confused about the command, as I am new to Stata.
Here is what I have
reshape wide USA GreatBritain France Germany FormerUSSR Japan Italy Canada Australia, i(USA GreatBritain France Germany FormerUSSR Japan Italy Canada Australia) j(Year)
I think my problem is that I am unsure what to put in the i() part of the command, as I am not really sure what it would be in this situation.
How can I reshape the data correctly?
Thanks
I have the following dataset listed in the attachment.
I am trying to reshape the data so that the years are the variables and the country names are the observations, therefore, I need to use reshape wide. However, I am confused about the command, as I am new to Stata.
Here is what I have
reshape wide USA GreatBritain France Germany FormerUSSR Japan Italy Canada Australia, i(USA GreatBritain France Germany FormerUSSR Japan Italy Canada Australia) j(Year)
I think my problem is that I am unsure what to put in the i() part of the command, as I am not really sure what it would be in this situation.
How can I reshape the data correctly?
Thanks
Comment