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
How to convert alphanumeric values into numbersHello, I have an alphanumeric string variable that have different characters for each observation. …
Differences-in-Differences with ModeratorsHello all, I could use some input as to how to go about a research design that I am look at doing.…
Global macro: How to remove a variable?I created a macro of available variable names in my dataset ($vitamins): Code: global vitamins vit…
SimulationHello guys, I'm trying to run a bootstrapping simulation just like here: https://www.statalist.org/…
Graph Combine for Autocorrelation FunctionI am looking to graph autocorrelations using graph combine via the following code: use "`root_folde…
Subscribe to:
Post Comments (Atom)
0 Response to Averaging eclass commands across multiple models
Post a Comment