Displaying 2 results from an estimated 2 matches for "localg".
Did you mean:
local
2011 Jul 12
1
Subsetting NaN values in localG()
...to use in the calculation, which I already know to
contain 25064 values):
/counter = 1
diffD = array(0,25064)
id = array(0,25064)
for(i in 1:53235){
if(diffc[i]!=-999){
diffD[counter] = diffc[i]
id[counter] = i
counter = counter+1
}
} ##Isolates values I want to use in localG calculation
neigh = cell2nb(169,315,type=='queen')
neigh2 = subset.nb(neigh,(1:length(neigh) %in% id)
mylist = nb2listw(neigh2,style="B")
stats = localG(diffD,mylist)/
Unfortunately, when I get to the last line of the code, I receive the
following error:
/"Error in matrix(...
2003 Apr 14
1
How to do the significant test on Local Moran's I
Dear list:
I've tried professor Roger Bivand's spdep package
for a while, and found it is quite useful. However,
when considering the significance test of the local
moran's index under the assumption of both normality
and randomization, I just can't get a clue from the
package's calculating results. I also read professor
Luc Anselin's 1995 LISA paper (geographical