Displaying 1 result from an estimated 1 matches for "autocov_dist".
2013 Feb 02
1
repeating autocovariate functions
...35.967
174.7166 -35.9649
174.7174 -35.968
174.7418 -35.9678
174.741 -35.9672
174.7395 -35.9671
(and 150 more)
To calculate the autocovariate terms my code is as follows:
library(spdep)
Taranga <- read.csv(file.choose()) #contains xy coordinates
xy <- cbind(Taranga$x, Taranga$y)
acinvb <- autocov_dist(Taranga$burrows.pa, xy, nbs=1,zero.policy = TRUE,
type="inverse")
datfrm <- data.frame(autocov=acinvb, nbs=1)
write.table(dfrm, file = 'results.csv',sep=",",row.names = FALSE)
acinva <- autocov_dist(Taranga$burrows.pa, xy, nbs=100,zero.policy = TRUE,
type=&qu...