Hi,
I am trying to recreate the table below:
Array
I have created the mean education for period by sex using the command:
"bysort period1 region : egen bam = mean f_yschool"
where period1 is the periods I am using in my study. What I essentially want to run is "bysort year region: gen relative_mschool= (mean_regionalmaleschooling)/(mean_regionalmaleschooling if r_code=2"
as r_code==2 is the region with the highest years of schooling. How do I divide the mean year of schooling per region per period by another value (region mean) from the same period in the variable?
It's a similar problem to this: https://www.stata.com/statalist/arch.../msg00492.html
Many thanks in advance.
Related Posts with Panel Data Manipulation: Divide All By Group of Data
Missing data in dependent variable - synthetic controlDear Statalist Comunity; I´m trying to run a synthetic control in stata 12.0 but I´m not getting be…
Statistical Significance of the difference between two estimates from two separate instrumental variable regressionsDear Statalisters, I am trying to run two schooling regressions: one for boys and one for girls. In…
Graph treatment effects by propensity scoreHi Everyone, I am trying to understand some of the heterogeneity in my study in which I am working …
added text specific to each by graphI'm looking for a way to insert added text into a histogram with by graphs, such that the added text…
Oneway BonferroniHello, I am trying to compare variables mean and std deviation across three samples. Is oneway bonf…
Subscribe to:
Post Comments (Atom)
0 Response to Panel Data Manipulation: Divide All By Group of Data
Post a Comment