It sounds as if your loop should be not to create 1100 matrices, and
then add them, but to keep only a running sum.
Nick
[email protected]
Victor, Jennifer Nicoll
I am receiving a memory error while trying to create (and store) many
matrices simultaneously. Increasing the memory allocation to Stata (set
mem 1g) does not help. Essentially, I am taking an nx1 vector and
multiplying it by its transpose to create a 438x438 matrix. I'm doing
this 1100 times and then need to add all 1100 matrices together. State
gives me the error "insufficient memory for matrix 11 r(950)" around
matrix 440 (or 700 depending on the trial). Advice?
*
* For searches and help try:
* http://www.stata.com/help.cgi?search
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/