Learn R Programming

GAPR (version 0.1.0)

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, order)

Value

The AR score (the total number of structural 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.