Hi,
I have subscribers per market (circle) for firms over time. There are two telecom company - BSNL and BSNL_VMOs, the circles/markets are "Andhra Pradhesh, ""Assam",.. and the time is measured at month-year level in wide format. I wanted to reshape the data to long format for plotting graphs (line charts representing each circle on a single graph with time (month-year) on X axis).
I get the error above because the circle name variable contains month_year. Is there any way to use the reshape command here?
I have subscribers per market (circle) for firms over time. There are two telecom company - BSNL and BSNL_VMOs, the circles/markets are "Andhra Pradhesh, ""Assam",.. and the time is measured at month-year level in wide format. I wanted to reshape the data to long format for plotting graphs (line charts representing each circle on a single graph with time (month-year) on X axis).
Code:
* Example generated by -dataex-. For more info, type help dataex clear input str26 Circle long(BSNL_jan_2019 BSNL_VNOs_jan_2019 BSNL_feb_2019 BSNL_VNOs_feb_2019 BSNL_jan_2021 BSNL_VNOs_jan_2021 BSNL_feb_2021 BSNL_VNOs_feb_2021) "Andhra Pradesh" 10176735 10 10147764 11 9670048 12 9662168 13 "Assam" 2418559 20 2502807 12 2981556 34 3009116 23 "Bihar" 5092654 30 5284522 12 5969667 23 5882003 23 end reshape long BSNL_ BSNL_VMOs_ , i(Circle) j(month_year) variable month_year contains all missing values r(498);
I get the error above because the circle name variable contains month_year. Is there any way to use the reshape command here?
Comment