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
Reshape long complicatedHi Statlist, I have a question for you about reshaping command. I have a quarterly sales dataset a…
Is the interpretation of a fisher unit root test biased if data are severely unbalanced?I have unbalanced data for N=1227 and T=142. My data is severely unbalanced and when I run the fishe…
Survival Time Data - Long Form - How do I generate a variable that indicates the number of observations at risk within a subgroup of data?I have a dataset on legal cases and individual hearings for each case, across multiple courts. I hav…
How to change value labels?My variable "q2" has two values: 1 and 2. Their labels are No and Yes, respectively. Now I want to …
Exporting two-way tabulation results to excel (in stata 14)Hello, I want to export two-way tabulation using (row option and survey weights) results to excel. …
Subscribe to:
Post Comments (Atom)
0 Response to Running multiple regression models on different combinations of explanatory variables
Post a Comment