Hello dear Stata users,
I am trying to run several regressions in the loop (Stata 17), but the memory does not allow me to do so. I tries "set maxvar 10000, permanently" before running my codes in do-file.
forval i=1/300 {
use sortedUzb.dta, clear
bsample 1477
qui probit owns_dwelling male age_group high_ed married divorced separated widowed log_monspending hh_size capital
estimates store Uzb`i'
qui probit owns_dwelling male age_group high_ed married divorced separated widowed log_monspending hh_size capital gen_trust
estimates store UzbT`i'
}
How can I deal with this? I might need more regressions within the loop, meaning there should be around 1000 probit regressions as well as estimated coefficients.
Thank you,
Farogat.
I am trying to run several regressions in the loop (Stata 17), but the memory does not allow me to do so. I tries "set maxvar 10000, permanently" before running my codes in do-file.
forval i=1/300 {
use sortedUzb.dta, clear
bsample 1477
qui probit owns_dwelling male age_group high_ed married divorced separated widowed log_monspending hh_size capital
estimates store Uzb`i'
qui probit owns_dwelling male age_group high_ed married divorced separated widowed log_monspending hh_size capital gen_trust
estimates store UzbT`i'
}
How can I deal with this? I might need more regressions within the loop, meaning there should be around 1000 probit regressions as well as estimated coefficients.
Thank you,
Farogat.
Comment