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
"prefer not to say" survey answersHi I am coding survey responses for stata analysis. I have many answers which are "prefer not to say…
Automated means to export elasticity outputs after estimating Almost Ideal Demand System (AIDS) using the Stata command 'aidsills'?Dear Statalisters, I have been running AIDS demand systems for several population subgroups using th…
Generating Time Variable in Panel DataHi, I am working with two rounds of Indian Development Human Survey Data of round 1 and 2 (individu…
local variable definition based of last character of string variable being odd or evenHi, I am trying to define a local variable based on the last character of global variable (M_crisis…
Standard output lostIn Windows 10 with Stata 16 if I log in as "admin" and issue the Stata command -pwd- Stata returns d…
Subscribe to:
Post Comments (Atom)
0 Response to Normalizing Graphs
Post a Comment