The purpose is to make the panel data ready for regression analysis, so I want to reshape it from wide to long format.
I tried the command:
I have no idea how to fix this. The column "Kommunenummer" are the individual observations while pend is a variable and the years are from 2000 to 2023. I'm trying to assess the impact of the pandemic on commuting.

The STATA file is attached below
https://drive.google.com/file/d/1oGS...usp=share_link
Any helpful inputs will be appreciated
I tried the command:
Code:
reshape long pend, i(Kommunenummer) j(year)
The STATA file is attached below
https://drive.google.com/file/d/1oGS...usp=share_link
Any helpful inputs will be appreciated

Comment