Skip to content
Prev 27113 / 29559 Next

inference of local Gi* using permutations

Thank you for the detailed explanation. Sorry for missing the explanation
of res. It is an n by nsim+1 matrix where the n columns are the permutation
results using sample() and the last column is the actual z values of G_i*s.
The following line of code was modified to do the permutations: (i in
1:nsim) res[i] <- moran(sample(x), listw, n, S0, zero.policy)$I. This could
be wrong since the sample() does not fix the value of interest at i. Are
there any functions in R can do this in a correct way? How do we calculate
the p-values after we get the n by nsim matrix? Thank you!
On Thu, Mar 7, 2019 at 8:05 AM Roger Bivand <Roger.Bivand at nhh.no> wrote: