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


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