Stata Users
I have 1,324 observations, and I am trying to run a regression upon 16 variables.
I believe that I should have 21,184 regression outputs (i.e. 1,324 * 16).
However, when I am running the loop it is only giving me 1,324 regression outputs
The code I am using is as follows:
I'd be very grateful if you could kindly provide some insights on what I am doing wrong.
Thank you very much for the help.
I have 1,324 observations, and I am trying to run a regression upon 16 variables.
I believe that I should have 21,184 regression outputs (i.e. 1,324 * 16).
However, when I am running the loop it is only giving me 1,324 regression outputs
The code I am using is as follows:
Code:
use evtstudydata, clear egen obs = group (gtdid) sort obs local vars atx bel20 omxc20 omxh cac40 dax30 athex iseq mib aex obx psi20 ibex35 omxs30 smi ftse100 forvalues i = 1/1324 { preserve keep if obs == `i' reg car `var' restore }
Thank you very much for the help.
Comment