Learn R Programming

GraphRankTest (version 0.1)

r.stat: Within-Group Sums (Ux, Uy)

Description

Supporting function for RISE. Given a symmetric rank/graph matrix \(R\), compute the within-group rank sums for the two samples.

Usage

r.stat(R, sample1ID, sample2ID)

Value

Numeric vector c(Ux, Uy).

Arguments

R

Symmetric nonnegative matrix (N x N) with zero diagonal.

sample1ID

Indices for group X.

sample2ID

Indices for group Y.