Dear Statalist,
I am doing an OLS regression, with 12 explanatory variables. I want to check the regression results on every iteration and adding extra variable to the regression.
For example, my dependent variable is :Y; and independent variables are: x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12.
my regression will be:
reg Y x1
reg Y x1 x2
reg Y x1 x2 x3
reg Y x1 x2 x3 x4
......
.......
reg Y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12
Now I want to do it in a single command so that for one command I can have all the regression results.
I would really appreciate if anyone helps me.
Thanks,
Mohiuddin
I am doing an OLS regression, with 12 explanatory variables. I want to check the regression results on every iteration and adding extra variable to the regression.
For example, my dependent variable is :Y; and independent variables are: x1, x2, x3, x4, x5, x6, x7, x8, x9, x10, x11, x12.
my regression will be:
reg Y x1
reg Y x1 x2
reg Y x1 x2 x3
reg Y x1 x2 x3 x4
......
.......
reg Y x1 x2 x3 x4 x5 x6 x7 x8 x9 x10 x11 x12
Now I want to do it in a single command so that for one command I can have all the regression results.
I would really appreciate if anyone helps me.
Thanks,
Mohiuddin
Comment