Hello All,
I am attempting to normalize my graphs by the unconditional average.
I run the following regressions
reg varlogwageinc i.agegrp9 i.year [aweight=wgt], robust noconst
estimates store time_effect
reg varlogwageinc i.agegrp9 i.cohort [aweight=wgt], robust noconst
estimates store cohort_effect
where agegrp9 is age groups by 5 year bands and cohorts are identified by year of birth.
I plot the two effects wanting the age profiles, I only keep the coeff on the agegrp9
coefplot (cohort_effect, recast(connected) ciopts(recast(rline) lpattern(dash)) ) (time_effect, recast(connected) ciopts(recast(rline) lpattern(dash))) ///
, vertical yline(0) keep(*.agegrp9 _cons) nooffsets ///
xtitle("Age") title("Variance of Log Wages")
I want to normalize the graphs by the unconditional average. So I need to multiple the coeff of the cohort_effect by [the unconditional mean of varlogwageinc which is (.72) divided by the mean of cohort_effect) So basically multiple all the coeff on the agegrp9 by 0.72/.37=1.9. Is it possible to multiple the coeff on agegrp9 by 1.9 and graph it?
Also I will do the same thing for the time_effect.
Thank you for your help
Related Posts with Normalizing Graphs
-xtoverid- or Variable Addition Test (VAT)Dear community, after having found heteroscedasticity and autocorrelation in my panel data, I accou…
Generating confidence intervals using a line graphI have run a difference-in-difference regression and want to make a line graph to illustrate my resu…
Generate binary variable from string variable contentsIs there a way to generate a variable based on a string variable that contains numbers in a list? Fo…
How to display a descriptive table for all items of an item set, presenting percentages for each response category?Dear all, I am stuck at a problem, although the solution should be straightforward. I have several…
How do I construct an index based on imputed variables using Stata? Hi all, I am looking to construct an index (ranging from 0 to 1) describing how positively the sur…
Subscribe to:
Post Comments (Atom)
0 Response to Normalizing Graphs
Post a Comment