robustmoran | R Documentation |
A permutation test for Robust Moran's I statistic calculated by using nsim random permutations of x for the given spatial weighting scheme generated with spdep, to establish the rank of the observed statistic in relation to the nsim simulated values.
robustmoran(x, listw, alternative = "greater", nsim = 999)
x |
a numeric vector the same length as the neighbours list in spdep listw |
listw |
a |
alternative |
alternative a character string specifying the alternative hypothesis, must be "greater" (default), or "less". |
nsim |
number of permutations |
A list with statistic
, p.value
and res
robustmoran(sampledata$x,sampledata$w)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.