| moranTest | R Documentation | 
Spatialy autocorrelation by Moran's I in C++
moranTest(x, weight, alternative = "greater")
x | 
 Feature value  | 
weight | 
 Adjacency weight matrix  | 
alternative | 
 "two.sided", "less", or "greater"  | 
Observed Moran's I statistic, the expected statistic under the null hypothesis of no spatial autocorrelation, the standard deviation under the null hypothesis, and p-value
data(mOB) pos <- mOB$pos weight <- getSpatialNeighbors(pos) gexp <- normalizeCounts(mOB$counts, log=FALSE, verbose=FALSE)['Camk4',] moranTest(gexp, weight)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.