Learn R Programming

GAPR (version 0.1.5)

AR: Compute the Anti-Robinson (AR) score

Description

Calculates the total number of Anti-Robinson violations over all triplets in the matrix using the specified ordering. This is equivalent to GAR with a full window.

Usage

AR(mat_sorted)

Value

The AR score (the total number of structural violations).

Please refer to GAP for complete usage examples.

Arguments

mat_sorted

A numeric, symmetric sorted distance matrix.