Learn R Programming

netdep (version 0.1.0)

phi.moment: Calculate \(\Phi\) statistic

Description

This is an auxiliary function to calculate non-standardized \(\Phi\) statistic and its first and second moment.

Usage

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 \(\Phi\) statistic.

m1.rawphi

the first (permutation) moment of rawphi.

m2.rawphi

the second (permutation) moment of rawphi.