Hi all,
I am having trouble converting my data to a long format. I have used the following code and the new Year variable generated does not correspond to the original Year variable in my dataset. I have around 14000 obs from 2018 and 4000 from 2019 but the new year variable generated gives 50% to each year so observations are being mismatched. I would appreciate any advice you may have:
rename YEAR YEAR_temp
reshape long England_ Region_ Turnover_ RnD_ FemDirector_ FemOwner_ FamOwned_ NoEmployees_ Deprived_ EMDirector_ AI_ Competition_ Profit_ Age_ Sector_ StaffTraining_ LegalStatus_, i(SERIAL) j(Year_info) string
I am having trouble converting my data to a long format. I have used the following code and the new Year variable generated does not correspond to the original Year variable in my dataset. I have around 14000 obs from 2018 and 4000 from 2019 but the new year variable generated gives 50% to each year so observations are being mismatched. I would appreciate any advice you may have:
rename YEAR YEAR_temp
reshape long England_ Region_ Turnover_ RnD_ FemDirector_ FemOwner_ FamOwned_ NoEmployees_ Deprived_ EMDirector_ AI_ Competition_ Profit_ Age_ Sector_ StaffTraining_ LegalStatus_, i(SERIAL) j(Year_info) string
Comment