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?
labsize in points generating strange resultPer the request of my publisher, I am going through a set of graphs and specifying text in point siz…
how many observations per year in panel dataHi there, I have a panel dataset. How can I see how many observations there are per year? I see in …
Eliminate a part of a stringHello there, I would like to eliminate a part of a string starting from a position recorded in anoth…
How do you de-trend an event study plot?I have an event study graph that I plot using coefficients from my dependent variable regressed on t…
Setting the outcome variable in Cox regression.Hi, I am trying to estimate the hazard ratios of the age of first drinking, the goal is to measure …
Subscribe to:
Post Comments (Atom)
0 Response to How to calculate percentage of certain categories using bysort command?
Post a Comment