View source: R/spearman_rho_b.R
rho_b | R Documentation |
"For observations on continuous variables that are ranked on each variable, Spearman's rho is the ordinary correlation applied to the rank scores. Kendall (1970, p. 38) proposed an analog of Spearman's rho for contingency tables. It is the ordinary correlation applied using the ridit scores. [...] Since the ridit scores are a linear function of the midrakbns, rho-b-hat also equals the correlation applied to the sample midrank scores. For 2x2 tables, rho-b = tau-b and then both measures equal the ordinary correlation." (Agresti 2010, pg 192).
rho_b(contingency_table)
contingency_table |
2D contingency table |
Sample estimate of spearman's rho-b
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.