Displaying 1 result from an estimated 1 matches for "coords2".
Did you mean:
coords
2004 Jun 18
1
how to store estimates results as scalars of a matrix?
...hort example.
My loop is working fine, however I would like to be able to store the test
results as lines of a matrix, that I would latter be able to export as a
dataset. My problem is that I'm not sure how I could do this using R.
Any help will be much appreciated.
All the very best,
JP
coords2 <- as.matrix(jcdist.data[1:87, 6:7])
col.tri.nb<-tri2nb(coords2)
for(n in c(1,88,175,262,349)) {
f<- n+86
work <- jcdist.data[n:f, 10:12]
res <-moran.test(spNamedVec("res1", work), nb2listw(col.tri.nb,
style="W"))
moran<-res$estimate[1]
u...