Learn R Programming

GAPR (version 0.1.5)

RGAR: Compute the Relative Generalized Anti-Robinson (RGAR) score

Description

This function returns the relative GAR score, representing the proportion of Anti-Robinson violations over the total number of evaluated triplets.

Usage

RGAR(mat_sorted, w = NULL)

Value

The RGAR score (between 0 and 1).

Please refer to GAP for complete usage examples.

Arguments

mat_sorted

A numeric, symmetric sorted distance matrix.

w

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