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
Questions about components' stationarity in VAR model.I am very confused about the stationarity of variables in VAR. It seems that different econometrics …
Program to label variables from list of words - How to use fewer single and double quotesI am used to make reusable programs, and find myself having issues with how I use the local single q…
syntax of forecast errorHi all, I am currently working on a state-dependent fiscal multiplier using forecast error to ident…
table with coefficients from regressionsHello With the following code I am able to run the regressions and get the constant and the t-stati…
Splitting a string variable into observations (instead of variables)Hi everyone I have two datasets. The master data include, among others, a list of (numeric) zip cod…
Subscribe to:
Post Comments (Atom)
0 Response to Normalizing Graphs
Post a Comment