Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: Mata Memory

From   Natarajan Balasubramanian <[email protected]>
To   "'[email protected]'" <[email protected]>
Subject   st: Mata Memory
Date   Mon, 23 Jul 2012 16:52:53 +0000

I am having trouble with memory allocation in Stata (I tried both IC Stata 11X64 and IC Stata 12X64, both). 

Here is the command and the error: 
felsdvreg y x, ivar(f1) jvar(f2) feff(feff) peff(peff) mover(mover)  group(group) xb(xb) res(res) mnum(mnum) pobs(pobs)

Memory requirement for moment matrices in GB:
                     J():  3900  unable to allocate real <tmp>[31712,31712]
             decompreg():     -  function returned error
                 <istmt>:     -  function returned error

end of do-file

Note that felsdvreg estimates regressions with two high-dimensional fixed effects. In this case, I have about 35,000 of each fixed effect on a dataset of about 200,000. 

For the r(3900), this is what the Stata manual says , "You must take up the problem with your  operating system". Based on an older post, ( ), a 64 bit machine (which is what I am using) is better. 8GB is more than the RAM on my machine (4GB) but is there any way to fix this without upgrading the RAM. Note that with a smaller sample (10% of the current one), the same program runs correctly. 


*   For searches and help try:

© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index