Statalist


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

Re: st: RE: macros, matrices, and memory space


From   "Gabi Huiber" <[email protected]>
To   [email protected]
Subject   Re: st: RE: macros, matrices, and memory space
Date   Wed, 8 Oct 2008 14:56:34 -0400

Nick, thank you for noticing my post. I'm working on several fronts.
The problem may go away as I clean up the code. If it doesn't, I hope
that at least I will have produced code that can be run without having
to wade through the specifics of the project. When I have something
suitable, I'll post it.

Thanks again,

Gabi

On Wed, Oct 8, 2008 at 10:40 AM, Nick Cox <[email protected]> wrote:
> No one seems to have commented on this, probably because it is difficult
> to know what to say. All I can say is that I suspect that there is a
> specific explanation for your problem, but quite what it is has got to
> remain a mystery until you can post specific reproducible code that
> exhibits the problem.
>
> Nick
> [email protected]
>
> Gabi Huiber
>
> Does anybody know if macros and matrices compete for the same limited
> memory space?
>
> I have a series of hierarchical do-files that process a bunch of
> weekly files in 28 separate geographical locations. Along the way, my
> do-files declare a lot of macros, both local and global. At the same
> time, there's a list of 28 matrices being declared in the very first
> do-file. They are simple timelines. Each matrix has one column and a
> number of rows equal to the number of existing weekly files in that
> location. Each cell has that weekly file's date of arrival.
>
> So this chain of do-files will run through the fifth location-timeline
> matrix, and then it will claim that the sixth does not exist. But they
> all do exist, because I declare them ahead of time and have the
> do-file "matrix list" them all before any other do-file is called.
> Somehow Stata records them, then forgets them. If I simply have it
> skip the first five locations, it will run through the rest without
> any snags.
>
> That's why I suspect this memory space problem. Am I looking in the
> wrong place?
>
> *
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index