I am running regression commands similar to the followings:
logit y cov1 cov2 cov3 cov4 cov5 cov6 cov7 cov8 cov9 cov10
est store E1
foreach var of varlist x1-x1129 {
logit y cov1 cov2 cov3 cov4 cov5 cov6 cov7 cov8 cov9 cov10 `var'
}
est store E1
foreach var of varlist x1-x1129 {
logit y cov1 cov2 cov3 cov4 cov5 cov6 cov7 cov8 cov9 cov10 `var'
}
Of note, var x1-x1129 have completely different names, such as aa_a_15_30018338, and I don't want to change var names if possible.
Any suggestions or comments will be highly appreciated!
Thanks,
0 Response to How to store each estimate of multiple regressions in a loop command
Post a Comment