I have the following excel data set (sorry if image is blurry) I want to covert this excel data to a long data format on stata. I am not sure how to do this, I I initially uploaded the excel file using import excel and listing the cells I want but the import excel command generated the STATA format seen below. One specific problem is that the excel file lists average drinking by mean, upci,lci for each borough from the years 2003-2019. STATA is not recognizing each year as a different variable so it creates a variable mean, upcl,lcl for the year 2003 then defaults to using the name of the column. I hope this makes sense sorry for any confusion in my writing English is not my native language

-
Login or Register
- Log in with
Comment