I am working with a data set that has five implicate data sets. For each data set, I am running a regression. After these regressions are finished, I want to average the e() results and then store the averaged result. Below, is an example of what I mean, though I am sure my nomenclature is incorrect:
reg x y1 y2 y3 if rep = 1
reg x y1 y2 y3 if rep = 2 ...
reg x y1 y2 y3 if rep = 5
gen varz = average(e_y11, e_y12, e_y13, e_y14, e_y15)
(and then store varz, and display it through estout)
This is a simplified example of what I am trying to do, but if anyone has suggestions for the above, I can then apply it to my code. Thank you.
Related Posts with Averaging eclass commands across multiple models
merging two year database company keys with one year observations databaseHi all, I would like to have an answer regarding the following topic. I want to match observations f…
longitudinal dataI would be very pleased if someone can provide me references on how to claen longitudinal data. Than…
How do i get the mean of all the seperate regressions?Hey, I have the problem that I have multiple regressions of years from 1963 to 2004 and I want the …
Stata runs very slow when estimating mixed models in a multiple imputed databaseDear Statalisters, I am using mixedin Stata 13 to assess the effect of a treatment on four different…
Stata runs very slow when estimating mixed models in a multiple imputed databaseDear Statalisters, I am using mixedin Stata 13 to assess the effect of a treatment on four different…
Subscribe to:
Post Comments (Atom)
0 Response to Averaging eclass commands across multiple models
Post a Comment