Dear Statalist,
I am trying to run an IV regression with about 1200 fixed effects using a large data set of about 100GB. I'm trying to run this using Stata MP 17.0 on a computing server with 400+GB of RAM but I'm consistently running into memory problems. I've tried ivreg2 and ivregress2, both of which ended up crashing Stata after running out of memory. Using the ivregress command gave the error:
Following the calculations in this post (https://www.statalist.org/forums/for...or-in-stata-16), it seems that (376459587 * 1244 * 8 / 1024 / 1024 / 1024) ~ 3489GB of memory is required for the method ivregress uses? Is there any way to estimate the regression (I'm also hoping to retrieve the estimate on the fixed effects)? Thanks for helping!
Kind regards,
William
I am trying to run an IV regression with about 1200 fixed effects using a large data set of about 100GB. I'm trying to run this using Stata MP 17.0 on a computing server with 400+GB of RAM but I'm consistently running into memory problems. I've tried ivreg2 and ivregress2, both of which ended up crashing Stata after running out of memory. Using the ivregress command gave the error:
Code:
First-stage regressions ----------------------- _iv_vce_wrk(): 3900 unable to allocate real <tmp>[376459587,1244] <istmt>: - function returned error r(3900);
Kind regards,
William
Comment