Learn R Programming

GAPR (version 0.1.0)

GAR: Compute the Generalized Anti-Robinson (GAR) score

Description

Calculates the number of Anti-Robinson violations within a specified window w, allowing evaluation of local structural consistency in the reordered matrix.

Usage

GAR(mat, order, w = NULL)

Value

The GAR score (the total number of violations).

Please refer to GAP for complete usage examples.

Arguments

mat

A symmetric numeric distance matrix.

order

A permutation vector specifying the new row/column order.

w

Window size (integer). If NULL, uses global comparisons (equivalent to AR).