Comments (4)
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.
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.
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.
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)
- fmerge error HOT 1
- data type following fcollapse HOT 1
- fcollapse with any missing weights returns all missing HOT 1
- fcollapse incorrectly parses negative weights HOT 6
- join: do not copy certain chars
- Adding update / replace to fmerge HOT 9
- join: problems with spaces in filepath HOT 1
- error with join HOT 3
- join: error when using labels and key has different name in using
- fmerge overwrites master dataset's xtset HOT 2
- fmerge: 1:1 merge, error 3498, <id1 id2> do not uniquely identify obs. in the master data HOT 5
- Running ftools commands such as `join` can clear mata objects unrelated to ftools HOT 1
- Dict size exceeds Mata limits? HOT 5
- fmerge / join changes using-keys>100 to missing HOT 1
- Treat negative values in verbose(#) as if they were zero instead of positive HOT 1
- join does not clear sortedby macro HOT 6
- Support many to many join HOT 1
- fcollapse issue with double identifier HOT 2
- parallel_map crashes on computers with slow temp folder
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ftools.