I currently have a data set with school districts and # of students enrolled per district from all 50 states. I categorized the states into 10 Regions with a new variable called Region (so for example, Alabama and Arkansas have Region 1). Now, I need to create terciles within each region. I want to have small, medium, and large districts for each of those 10 districts, resulting in 30 bins (3 categories for each of the 10 regions). I've tried some different egen commands but have not been able to successfully split them within each region--I can split the entire data set into terciles easily, but have not figured out how to do it for each region.
-
Login or Register
- Log in with
Comment