View source: R/concordancy_pairs.R
concordancy_pairs | R Documentation |
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.
concordancy_pairs(contingency_table)
contingency_table |
Contingency table of counts |
Named vector of number of Concordant and Discordant pairs.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.