I have created an income decile variable out of my income variable. I also have a variable of crime frequency which shows how many crimes occurred in a specific district (my data is at the district level). The crime data ranges from 0 to 17. I would like to see what percentage of crime rate took place by which income decile. I used this command egen crime_decile =xtile( income_neighborhood ), n(10) by( crime_freq) but didn't work. I wonder if someone can help me here. Thank you.
-
Login or Register
- Log in with

Comment