Hi I was trying to convert time series data into panel data but have been encountered some problems.
Firstly my time series datasets are in following format:
Company Name r2001 r2002 r2003
AA PLC 2 4 7
BB PLC 3 5 8
CC PLC 7 9 9
While I tried to import these data from excel to stata, once I imported, I opened data editor, then I realised the column company name are in red.
Then I tried to reshape the data with following command, stata shows the following:
reshape long r, i(name) j(year)
variable name not found
r(111);
Can anyone told me why the company name column was in red in the first instance? How can I resolve this issue and reshape my data?
Thank you!
Firstly my time series datasets are in following format:
Company Name r2001 r2002 r2003
AA PLC 2 4 7
BB PLC 3 5 8
CC PLC 7 9 9
While I tried to import these data from excel to stata, once I imported, I opened data editor, then I realised the column company name are in red.
Then I tried to reshape the data with following command, stata shows the following:
reshape long r, i(name) j(year)
variable name not found
r(111);
Can anyone told me why the company name column was in red in the first instance? How can I resolve this issue and reshape my data?
Thank you!
Comment