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
rdplot weight the linear function of dependent variable by the number of observations in each binHi all, I am currently using rdplot to visualise the discontinuity of my outcome variable along the…
dcreate (efficient designs / choice experiments)Dear friends: I am working with the dcreate command to build efficient designs for choice experiment…
Delete variables that have the same number repeated across all observations with some missing values.I have a dataset with ~2500 variables named NEIS* and I want to: - Delete all variables that have th…
Create polygon using coordinatesDoes stata have the capability to help create a shape file by filling in the lines between coordinat…
Coefplot: Group covariates by model, and not model by covariatesI am trying to plot estimates from multiple models using coefplot. I need to group all the estimates…
Subscribe to:
Post Comments (Atom)
0 Response to Running multiple regression models on different combinations of explanatory variables
Post a Comment