phi.moment: Calculate Phi statistic

Description Usage Arguments Value Author(s)

View source: R/nettest.R

Description

This is an auxiliary function to calculate non-standardized Φ statistic and its first and second moment.

Usage

1
phi.moment(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 nominal or binary, one-dimensional observations.

Value

rawphi

Non-standardized Φ statistic.

m1.rawphi

the first (permutation) moment of rawphi.

m2.rawphi

the second (permutation) moment of rawphi.

Author(s)

Youjin Lee


youjin1207/netdep documentation built on May 30, 2019, 12:48 p.m.