Dear Members, I need your help in setting up data in Stata. I have the variable customer_home_city that includes cities and numbers of customers in each city. I want to bring the list of cities in this variable in a column. I would appreciate your help.
The sample data is as follows.
Thank you.
Moeen
The sample data is as follows.
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input float storeid strL customer_home_city
1 `"{"Wayne, NJ":19,"Lincoln Park, NJ":4,"Clifton, NJ":4,"Bloomington, IN":2,"Hibernia, NJ":2,"Harrison, NY":2,"Paterson, NJ":2,"Singac, NJ":2,"Fairfield, NJ":2,"Hawthorne, NJ":2,"Ridgewood, NJ":2}"'
end
Moeen

Comment