Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down on April 23, and its replacement, statalist.org is already up and running.


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

st: spmat idistance error


From   rraciborski@stata.com
To   statalist@hsphsun2.harvard.edu
Subject   st: spmat idistance error
Date   Wed, 01 Feb 2012 08:23:56 -0600

Ajita Atreya <ajita63@hotmail.com> has a question about the user-written
-spmat- command:

> I could eventually create an inverse distance matrix....
> However, when I tried to use my matrix in spreg command I got the following
> error message after running for about 9hrs.
> SPMAT_matop(): 3900  out of memory
> SPIVREG_main(): -  function returned error
> <istmt>: -  function returned error
> I wanted to check if Mac version of stata would work for me. Unfortunately,
> I got an error message:
> "Division by zero: Two or more spatial units have same coordinates" when I
> used the code: spmat idistance idoug longitude latitude,id(_ID)
> dfunction(dhaversine) normalize(minmax) vtruncate(1/.1) banded. 

If Ajita can send me the code and the dataset privately, I will be more than
happy to look at the issues and report back to the Statalist.

We do not allow two different spatial units to have the same coordinates, as
the inverse distance between units sharing coordinates is not defined.

--Rafal
rraciborski@stata.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/


© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   Site index