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
nlcom followed by sureg gives error "last estimates not found"I'm trying to estimate direct and indirect effects for a logit model with multiple imputation. I ha…
Dummy based on a continuous condition. …
Store and export p values from pwcorr in a loopI am running correlations for ~3,000 variables. The nuance of the usefulness of p values versus conf…
Reshape multiple years observations from wide to longDear all, my current data structure is as follows: DATA CompanyID 2011 2012 2013 … 2019 VarOfIn…
confidence intervals around proportion on multilevel dataHi, I’m doing an analysis of applications and selections for grants. I do not have a way to identif…
Subscribe to:
Post Comments (Atom)
0 Response to Adding Variables Gradually in Regressions
Post a Comment