I am working on stata to run multiple regressions, I would like to write a loop to achieve this goal.

My case is there are 10 control variables, v1....v10, dependent variable is A, variable of interest is B

what I want to do is run 11 regressions by adding control variable one at a time.

reg A B,

reg A B v1

reg A B v1 v2

reg A B v1 v2 v3

.

.

.

.

reg A B v1 v2 v3 v4 v5 v6 v7 v8 v9

reg A B v1 v2 v3 v4 v5 v6 v7 v8 v9 v10

for each regression I need output them into word file using outreg2

Can anyone help me on this, any suggestion and help will be appreciated advance.

Thank you!

My case is there are 10 control variables, v1....v10, dependent variable is A, variable of interest is B

what I want to do is run 11 regressions by adding control variable one at a time.

reg A B,

reg A B v1

reg A B v1 v2

reg A B v1 v2 v3

.

.

.

.

reg A B v1 v2 v3 v4 v5 v6 v7 v8 v9

reg A B v1 v2 v3 v4 v5 v6 v7 v8 v9 v10

for each regression I need output them into word file using outreg2

Can anyone help me on this, any suggestion and help will be appreciated advance.

Thank you!

## Comment