[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
Reshaping data for conditional logit modelingDear Statalist, I would like to use a conditional logit model to analyze the following survey questi…
Difference between instrumental variable interaction and instrumental variable subgroup analysisDear Statalist, For the following model under the IV framework: Code: ivreg2 cognition (infl_pneum…
ivreg2 and interactions of the endogenous regressorHi have a question about ivreg2. It has been asked before and I have gone through the helpful posts.…
Does _parse comma have a bug with identifying unbound commas in compound quotes?I was surprised to discover that -graph- throws an error when the title (or various other strings) h…
Export*coefficient and standard error of factor variableHi! Let's say this is my data Code: * Example generated by -dataex-. For more info, type help data…
Subscribe to:
Post Comments (Atom)
0 Response to Loop over different dependent and independent variables
Post a Comment