MoranI: Moran's I statistic

Description Usage Arguments Value Author(s)

View source: R/nettest.R

Description

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

Usage

1
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.

Author(s)

Youjin Lee


netdep documentation built on May 2, 2019, 5:52 a.m.