[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
summarize variable by group with max and min valuesHi, How can I summarize a variable by group including maximum and minimum value? This only calcula…
Modelling market share of brands using panel data with cross-sectional variablesHi everyone, I'm trying to model the choices among different products from 2000 to 2018 in differen…
Flexible Parametric Survival (stpm2) - command str2d not workingDear Forum Members, I'm using the user-written - stpm2 - written by Royston and Lambert. The comman…
Problem with xi - syntaxI just realized the solution. Sorry. When you are making only dummies with xi and not running a com…
Adjusting bar sizeHi, I hope everyone here is safe working from home. I am working with bar charts from my real-time …
Subscribe to:
Post Comments (Atom)
0 Response to Loop over different dependent and independent variables
Post a Comment