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]
st: RE: spmat idistance error
From
Nick Cox <[email protected]>
To
"'[email protected]'" <[email protected]>
Subject
st: RE: spmat idistance error
Date
Fri, 27 Jan 2012 19:36:53 +0000
Are you trying to create a matrix that is 24000 X 24000?
That's perfectly legal in Mata, but your computer has to have memory to match; and evidently it doesn't.
Note that this is nothing to do with Stata's matrix limits: the constructs here are in Mata, not Stata, and in any case no Stata marketed supports that big a -matsize-.
No doubt the authors of these routines will provide much more specific help -- more is involved here than just one matrix -- but my guess is that you need to try something else.
Nick
[email protected]
Ajita Atreya
I have 24,000 observations on property prices.
I am trying to create an inverse distance matrix with truncation (200m) to use in
spreg command.
I used the following code to create inverse distance matrix:
spmat idistance longitude latitude, id(id) dfunction(dhaversine) vtruncate(1/.2) normalize(minmax) banded
The matrix was created once but when I re did it I started getting the error as: Object not created-bands must be<=5516
The model I am using is :
spreg g2sls lnprice ........, id(id) dlmat(matrixname) elmat(matrixname)
I also get error messages as: Mata is out of memory
Please suggest me how can I handle this matrix thing...Is it the memory of stata that is creating the problem???
PS. I am using stata12 and it works fine when I create contiguity matrix instead of inverse distance
*
* 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/