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
Panel Data & Pearson's Correlation MatrixHi, I am using log variable. Should I use the logged variable for my Pearson's matrix or regular va…
Standard error of the difference of coefficientsDear Statalist Members I run a regression where I compare the the evolution of a coefficient over a…
xlabel in bar chart. I want to make the negative x-axis values in the bar chart (attached figure) to positve values, eg …
robustness test in reghdfehello everyone, I am using panel data fixed effect , and in term of the checking the robustness test…
Merging data from two variabelsHi I want to generate a new variable from two numeric continuos variables which both have range from…
Subscribe to:
Post Comments (Atom)
0 Response to Looping regression to determine one set of control variables that make models significant
Post a Comment