Hi,
Before I post my question, I would like to mention that I already looked through the forums here on using for loops to run multiple regression models (https://www.statalist.org/forums/for...-the-same-time, https://www.statalist.org/forums/for...le-regressions, https://www.statalist.org/forums/for...ssions-at-once). Unfortunately, the existing discussion posts don't quite answer my question.
My dependent variable is A. My independent variables are B,C,D,E,F,G,H. All these variables have been log transformed as well. So, I have ln_A and ln_B - ln_H. Now, I need to try different combinations of logged and non-logged variables and run multiple regressions. For instance,
Model 1: reg A ln_B ln_C D E F G ln_H
Model 2: reg ln_A B ln_C D ln_E F ln_G ln_H
and so on...
As you can tell, there are far too many combinations possible (P8,8 precisely?). I need to run at least a few different specifications. The reason for doing this exercise is to make sure that the polarity of the coefficients is not an artifact of the log-transformation. Is doing it manually the only way or is there a way to automate this? Please help!
Thanks in advance!
Sam
Related Posts with Running multiple regression models on different combinations of explanatory variables
wrapping up using lines of codes in a loopHi, How can I wrap up the below code in a loop? Best, Nader gen n=_n gen sample=_n replace sam…
Transition analysisHi I want to do a transitional analysis. I have the following transition periods that is 1. No morbi…
operating sums of columnsI guess this is about using stata as a very basic calculator--but I really need it to go that way. I…
API from Alpha Vantage. How to download and organize data in Stata?Hi, I would like to download data via API. I am using the website Alpha Vantage. I have gotten my A…
installing an ado fileCan anyone guide me on how to install an ado file? I'm using stata 14.2 in Mac. Here is the file htt…
Subscribe to:
Post Comments (Atom)
0 Response to Running multiple regression models on different combinations of explanatory variables
Post a Comment