[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
Large coefficients for FE, POLS and REGood day to you I am estimating Tanzania export performance using gravity model , and my coefficient…
Trouble merging multiple files with a loopHi, I have 62 files that are numbered in sequential order (1,2,3...) that I want to merge into and …
Inconsistent results between xtpoisson and marginsHi Statalisters, I am using -xtpoisson,fe- count data model to analyze my panel data. The dependent…
Link suppliers-customer's transaction records by yearsHi Stata Users, I am using Stata for my project that links supplier-customer transaction records. …
Multinomial logistic regression in paneldata: femlogit vs. mlogit,cluster(panelid)Dear all, I would like to run a multinomial logistic regression for (unbalanced) panel data in Stat…
Subscribe to:
Post Comments (Atom)
0 Response to Loop over different dependent and independent variables
Post a Comment