concordancy_pairs: Calculate concordancy pairs

View source: R/concordancy_pairs.R

concordancy_pairsR Documentation

Calculate concordancy pairs

Description

Calcualtes the number of concordant and number of discordant pairs in a 2D contingency table. Ascending or descending order does not matter for this calculation. Modeled after Agresti 2010 pg 186. Generally, if there are more concordant pairs than discordant pairs (C - D > 0), then the association of the ordinal variables is positive. If more discordant (C - D < 0), then the association is negative.

Usage

concordancy_pairs(contingency_table)

Arguments

contingency_table

Contingency table of counts

Value

Named vector of number of Concordant and Discordant pairs.


tsostarics/sostools documentation built on Nov. 22, 2022, 7:26 p.m.