Hi everyone,
I have one dependent variable Y, four independent variables X1 X2 X3 X4, 12 control variables C1 C2 .....C12 (please note that independent and control variables are in random forms and not in any order)
Now, I want to loop regression to select a set of control variables from my 12 ones that can make the coefficient of my 4 independent variables(X1 X2 X3 X4) significant, which in my case the p-value of the four coefficients should be less than 10%( the smaller the better).
Please note the set of control variables that I want to pick out can contain from just 1 control variable to as much as 12 ones, which means it can be just C1 or just C2 or just C7 and it can also be a combination like(C1, C7, C10, C12). If my calculation is correct, there should be ( 2^12-1=4095) combinations and correspondently 4095 times of looping regression.
And when the set of control variables satisfied the significance request is detected, I'd love it to be output so that I can see which sets are available.
Thank you for your help
Related Posts with Looping regression to determine one set of control variables that make models significant
PPML excluded regressorsHi, Why some regressors are excluded with PPML estimator? What is the interpretation of that? Than…
Generating macro containing name of current do fileHello, Is there a way to do the above? I'm doing parallel analysis, with duplicate do files, except …
Comparing coefficients in a regressionHi, I have the following linear regression model specified. These are at the consumer order level, i…
Simple Regression Questions: Time Series and % ChangeHello, I'm very much a Stata and linear regression newbie. I am running a linear regression with Bi…
Bayes factor in StataHi! I am working together with a colleague who has done a study with an amount of non significant fi…
Subscribe to:
Post Comments (Atom)
0 Response to Looping regression to determine one set of control variables that make models significant
Post a Comment