Bookmark and Share

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


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

Re: st: Problems with twoway contour


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: Problems with twoway contour
Date   Tue, 1 May 2012 08:51:45 -0500

The error code 3900 indicates:

[M-2]   error . . . . . . . . . . . . . . . . . . . . . . . . Return code 3900
        out of memory
        Mata is out of memory; the operating system refused to supply
        what Mata requested.  There is no Mata or Stata setting that
        affects this, and so nothing in Mata or Stata to reset in order
        to get more memory.  You must take up the problem with your
        operating system.

I believe the problem is that mata needs to create a 56554*56554
matrix which would require 24 gigabytes.

One way to proceed would be coarsen the x and y variables.  For example:

clear
set obs 100000
gen x = runiform()
gen y = runiform()
gen z = runiform()
//will not work - mata out of memory
capture noisily twoway contour z y x

xtile qx = x, n(80)
xtile qy = y, n(80)
egen newx = mean(x), by(qx)
egen newy = mean(y), by(qy)
twoway contour z newy newx


Scott

On Tue, May 1, 2012 at 4:40 AM, John Samuel <[email protected]> wrote:
> Hi Scott,
> Thanks for your reply. All files are up-to-date and the example works fine.
>
> Any ideas what might be going wrong?
>
> Thanks
> John
>
*
*   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/


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