Learn R Programming

GraphRankTest (version 0.1)

rTests.base: Core Test on a Given Rank/Graph Matrix R

Description

Internal function used by RISE once a rank/graph matrix \(R\) is constructed. It computes the within-group sums, asymptotic covariance, quadratic statistic, and (optionally) permutation-based p-value.

Usage

rTests.base(R, sample1ID, sample2ID, perm = 0)

Value

See RISE().

Arguments

R

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

sample1ID

Integer indices for group X.

sample2ID

Integer indices for group Y.

perm

Integer permutations for permutation p-value (default 0).