dot-gk_gamma_from_tab: Compute Gamma from a Pre-built Contingency Table

.gk_gamma_from_tabR Documentation

Compute Gamma from a Pre-built Contingency Table

Description

Shared engine for gk_gamma() and gk_gamma_vec(). Uses cumulative suffix sums and prefix column sums for O(nr \times nc) concordant/discordant pair counting.

Usage

.gk_gamma_from_tab(tab, nr, nc)

Arguments

tab

Integer or numeric matrix (contingency table).

nr

Number of rows.

nc

Number of columns.

Value

A scalar: the gamma coefficient, or NA_real_.


easyRaschBayes documentation built on March 28, 2026, 5:07 p.m.