View source: R/kendall_tau_b.r
kendall_tau_b | R Documentation |
Calculate sample form of Kendall's Tau-b (Kendall 1945; Agresti 2010, pg 188).
kendall_tau_b(contingency_table)
contingency_table |
2D contingency table of counts |
Another association measure based on C-D that also incorporates information about tied pairs. "In fact, tau-b-hat is a type of correlation even for rxc tables, using sign socres for pairs of observations." (Agresti 2010, 188)
Note that this is NOT the same as Kendall's tau (Kendall 1938), which should be used for continuous variables where there are no tied pairs (Tx=Ty=Txy=0).
Because this uses concordancy pairs, ascending or descending order in the ‘xtabs' contingency table doesn’t matter.
Kendall's tau b for the sample contingency table.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.