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?
Diff-in-diff with dynamic treatment timeHi, I am trying to investigate the effect of an in-hospital intervention on: 1) Time to emergency …
System GMM with xtabond2 and xtdpdgmmHi Statalisters, I would like some input on my choices between xtabond2 and xtdpdgmm, as they diffe…
clustering error in gravity modelHi stata users, Currently, I'm researching for my thesis about the impact of non-tariff measures on…
How to run a regression differently for two rounds?Hi, I am working with panel data comprising of two rounds- 2005 and 2012 and I cannot figure out ho…
Problem merging two panel datasetsI have the following panel dataset of number of workers on online websites ( such as freelancer, Upw…
Subscribe to:
Post Comments (Atom)
0 Response to How to calculate percentage of certain categories using bysort command?
Post a Comment