rho_b: Spearman's rho-b for rank scored contingency tables

View source: R/spearman_rho_b.R

rho_bR Documentation

Spearman's rho-b for rank scored contingency tables

Description

"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).

Usage

rho_b(contingency_table)

Arguments

contingency_table

2D contingency table

Value

Sample estimate of spearman's rho-b


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