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
Related Posts with Adding Variables Gradually in Regressions
Using rsens for sensitivity analysis after PSM Hi everyone, Just looking for some help carrying out a sensitivity analysis after psm. After carry…
bootstrap likelihood ratio OR Lo-Mendell-Rubin adjusted likelihood ratio testDear Statalisters, Please I am looking for your help to obtain the syntax in order to calculate boo…
Replacing missing values with the mean by group via a loopHello, I have a large dataset of 59,000,000 observations. There are a 50 variables each beginning …
Using only end of month values for a daily dataset?Hey I have a dataset in this format: Date(daily) var1 var2 var3 var4 var5 I only want to work wit…
Different results xtmelogit vs. melogitDear all, This is my first post. I read the FAQ and I hope I am not breaking the rules. Here are t…
Subscribe to:
Post Comments (Atom)
0 Response to Adding Variables Gradually in Regressions
Post a Comment