[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
Hierarchial cluster analysisHello, I am trying to create cluster by using command --cluster wardslinkage activity_1 activity_2 …
Please HelpHi everyone, Someone, kindly clarify the below for me. 1). Should one check for optimal lag per va…
Two sample unpaired ttest with mean difference specifiedI need to run a t-test on a two sample group that is unpaired with unequal variance for a specific m…
Difference in change between groupsDear Stata users, I am struggling to understand "the Difference in eGFR change" in the following ta…
How to estimate EndogenityDear Statalisters, I am new to Stata Forum. I am not much familiar with GMM estimation using xtabond…
Subscribe to:
Post Comments (Atom)
0 Response to Loop over different dependent and independent variables
Post a Comment