I have a dataset at the individual level which includes a variable on education. The variable takes values of 9,10, and 11 for BA, MA, and Ph.D. What I would like to do is to calculate the percentage of individuals with a college education (with a BA, MA, or Ph.D.) at the district level (my dataset includes a variable that shows the respondent's district). I know how to calculate sum or mean using the bysort command but I don't know how to calculate the percentage of several categories. I was wondering if I could get help here.