[I am using STATA 15.0] I am trying to run ANCOVA regression and store the results using eststo and esttab. I have three different dependent variables (Xb Yb Zb), three different independent variables (Xf1 Yf1 Zf1), and a set of control variables (A B C D). My 1st regression specification is: eststo: reg Xb Xf1 A B C D, cluster (id). My 2nd regression specification is: eststo: reg Yb Yf1 A B C D, cluster (id), and the 3rd one is: eststo: reg Zb Zf1 A B C D, cluster (id). I was trying to run 3 regressions using loop; however, I failed. Can anyone please help me with how should I write the loop command? Thank you in advance.
Related Posts with Loop over different dependent and independent variables
Problem with foreachHi dear member, I am a beginner in the use of foreach. I need help to execute this code: foreach v…
Issue with Clustering - Distance Measures (centroid, ward)Hello everyone, I'm struggeling with a problem, which is probably quite easy to resolve - but I was…
Do sum of all corresponding values in one column when other column has a certain valueI want to sum the column 'stat1' by the column 'Group' if it has a certain value, such as Group == '…
Difference in Difference (DiD) within GMMHello everyone, I am trying to work out how to complete a DiD (difference in difference) analysis w…
Storing loop regression outputsHello everyone, I'm trying to run the below loop and store the estimates of each regression model; …
Subscribe to:
Post Comments (Atom)
0 Response to Loop over different dependent and independent variables
Post a Comment