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.
Related Posts with How to calculate percentage of certain categories using bysort command?
META ANALYSIS - meta regression -Prevalence studyHi to everybody. I've to do a metaregression analysis of Prevalence study. The aim of the study is: …
Create same variable across groups in panel dataHello Statalists, Hope you can advise on this. Lets say I have data N=20 and T=100, and I want to …
When can I use "xtset id" in response to "repeated time values within panel"?Hi there, I currently have data for a large pool of individuals across four years (2015/16/17/18). …
Modify color outside valuesGood morning I am using stata 14 and the following code to graph three boxplots. I have changed the…
year dummies multicollinearityIn my fixed effects regression of about 30 panels in 30 years when i include year dummies by using -…
Subscribe to:
Post Comments (Atom)
0 Response to How to calculate percentage of certain categories using bysort command?
Post a Comment