powered by
This function calculates Moran's I statistic given adjacency matrix and outcome. The statistic can be used for testing network dependence.
MoranI(A, Y)
[n x n] adjacency matrix or general relational weight matrix of which \(A_ij\) indicates relationship from \(i\) to \(j\).
[n x n]
a vector of \(n\) continuous or binary, one-dimensional observations.
moran
a standardized Moran's \(I\) statistic.