Learn R Programming

netdep (version 0.1.0)

MoranI: Moran's I statistic

Description

This function calculates Moran's I statistic given adjacency matrix and outcome. The statistic can be used for testing network dependence.

Usage

MoranI(A, Y)

Arguments

A

[n x n] adjacency matrix or general relational weight matrix of which \(A_ij\) indicates relationship from \(i\) to \(j\).

Y

a vector of \(n\) continuous or binary, one-dimensional observations.

Value

moran

a standardized Moran's \(I\) statistic.