Hi,
I want to add multiple independent variables in the regressions gradually with the same dependent variable and previous independent variables.
Instead of writing regressions separately, is there any smarter way to do that? For example, use a loop.
For example, the dumbest way is
webuse auto.dta, clear
reg price mpg
est store m1
reg price mpg rep78
est store m2
reg price mpg rep78 headroom
est store m3
reg price mpg rep78 headroom trunk
est store m4
reg price mpg rep78 headroom trunk weight
est store m5
0 Response to Adding Variables Gradually in Regressions
Post a Comment