Bookmark and Share

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: spmat idistance error


From   Ajita Atreya <[email protected]>
To   <[email protected]>
Subject   st: spmat idistance error
Date   Fri, 27 Jan 2012 19:27:42 +0000

Hi,

 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/


© Copyright 1996–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index