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
Creating frequencies from list of 30,000 observations saved as stringsI have a list of 30,000 plus observations which represent patient diagnoses. They are saved in strin…
Multilevel Multinomial logistic regression with group-level variablesHello, I am trying Multilevel Multinomial logistic regression with gsem command.
However, there's a …
General QuestionHello,
Kindly let me know why it is recommended to use OLS and Fixed effect model before using GMM. …
Help with combining 2 shapefilesHi, I have previosly worked with the "spmap" command, so Im familiar with it. But now im trying to d…
Xtlogit with weights workaroundHi,
I'm trying to run a random effects logit models with weights. The syntax I was trying was
xtol…
Subscribe to:
Post Comments (Atom)
0 Response to Normalizing Graphs
Post a Comment