Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: too many variables.


From   Steven Samuels <sjhsamuels@earthlink.net>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: too many variables.
Date   Fri, 29 Aug 2008 11:10:56 -0400

Ashim, someone from StataCorp would give you more technical details, but, very roughly speaking,


memory usage = overhead + (#variables) x (#observations).

The 2048 variable limit is a maximum possible, IF you have the memory available to handle them. You may not:
If you try to add k new variables, you are increasing your memory usage by k x (# observations) and this could put you over the limit.

Some solutions:
1. -compress-
2. -keep- only the variables you need for your analysis.
3. -drop- variables you previously created that you no longer need for this analysis (accomplishes same as 2. but may be shorter)
4. If not all observations are needed, keep only those you do need.

A reminder: Maarten has asked you for the "exact" commands that you ran and the other details. You responded with a vague description about generating some variables. This was not helpful.


-Steven

On Aug 29, 2008, at 10:43 AM, Ashim Kapoor wrote:


Maarten,

I generate variables according to some rule. I guess that trigerred
this when it could not add any more ?

Thank you,
Ashim.

On Fri, Aug 29, 2008 at 8:00 PM, Maarten buis <maartenbuis@yahoo.co.uk> wrote:

--- Ashim Kapoor <ashimkapoor@gmail.com> wrote:
When I do -help limits- I can clearly see that the max no of
variables allowed in Stata IC which is what I am running is around
2000.

I only have about 200 variables and then it says too many variables.
I have set memory 1150m. Also is width  = no of variables ?
What is the _exact_ command that triggered this message?

-- Maarten


-----------------------------------------
Maarten L. Buis
Department of Social Research Methodology
Vrije Universiteit Amsterdam
Boelelaan 1081
1081 HV Amsterdam
The Netherlands

visiting address:
Buitenveldertselaan 3 (Metropolitan), room Z434

+31 20 5986715

http://home.fsw.vu.nl/m.buis/
-----------------------------------------

Send instant messages to your online friends http:// uk.messenger.yahoo.com
*
* 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/

*
*   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/
*
*   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–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index