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
about margins for simple slopeI use STATA 14. When I use the margins to obtain simple slopes, it reports t values instead of z val…
Star option (for significance) for Pearson / Spearman correlation matrix (corsp)Dear Statalist members, I want to display the Pearson correlation coefficients and the Spearman ran…
Multilevel model error with covariance (unstructured) - Hessian is not negative semidefinite conformability errorI'm testing a multilevel model with random slopes and a covariance structure for the error and reml …
Regressions with lagged structure using loop commandHi everyone, I have run the following regressions using the loop command which works just fine: C…
How to calculate the weakest link from a matrix?Dear Statalisters: I hope you are doing well. I am trying to calculate the weakest link from a sampl…
Subscribe to:
Post Comments (Atom)
0 Response to Adding Variables Gradually in Regressions
Post a Comment