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?
Help with the Synth commandHello everyone. I'm currently working in a paper which tries to find the effectiveness of the Europe…
Need help on histogram rangeI hope everything to work out well in your lives. Here's the question: How can I draw histograms fo…
Interpret Hansen J statistic and other tests following ivreg2 command in stataDear all, Could you please help me to interpret some tests from ivreg2 command as follows: Code: …
logistic regression ? panel dataDear Stata community, My data is long data and I have given an example of how it looks below. I ha…
Dynamic Spatial Panel Model with XSMLE "Convergence Not Achieved"Dear Stata Users, I am trying to analyze the impact of minimum wages on employment (divided into fo…
Subscribe to:
Post Comments (Atom)
0 Response to How to calculate percentage of certain categories using bysort command?
Post a Comment