Git Product home page Git Product logo

Comments (4)

wilburtownsend avatar wilburtownsend commented on August 10, 2024

I received a similar bug using fcollapse

 fcollapse (sum) value, by(r)
                 round():  3900  unable to allocate real <tmp>[403200000,1]
                factor():     -  function returned error
                 <istmt>:     -  function returned error

from ftools.

sergiocorreia avatar sergiocorreia commented on August 10, 2024

This is a stata error that happens when it runs out of memory. In your case, you were trying to allocate a vector with 400mm obs and Stata couldn't do it.

400m obs, with 8 bytes per observations, is roughly 3.2 gigabytes, on top of all the memory that stata and Mata are already using. If you are on a server that shouldn't be a problem, but on a laptop or desktop you will probably run out of memory.

One option is that you can try closing other programs, or dropping unused obs. and variables (or using compress), to save memory before the collapse.

Also, it might help to update ftools to the latest versions.

from ftools.

asmithbravo avatar asmithbravo commented on August 10, 2024

Dear Sergio,

After running xtabond2 for a dynamic panel data model I get the same message:

round(): 3900 unable to allocate real [403200000,1]
factor(): - function returned error
: - function returned error

Could I use tools to estimate xtabond2 and solve the memory problem When I add the nomata option, the system tells me the following message:

no room to add more variables Up to 5,000 variables are currently allowed, although you could reset the maximum using set maxvar; see help memory.]

Do you know how to solve this_ Could I use your package?

Thanks

from ftools.

sergiocorreia avatar sergiocorreia commented on August 10, 2024

As mentioned in the other thread, this is likely due to your computer's memory being too small for whatever xtabond2 needs. vectors of size 400m*1 are HUGE, so you either need a beefy server, a smaller dataset, or understand a bit better what's causing this allocation

from ftools.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.