The Spearman correlation coefficient

Described in Chapter 7 "The rxc Table"

Spearman_correlation_coefficient_rxc(n, alpha = 0.05)

Arguments

n

the observed table (an rxc matrix)

alpha

the nominal significance level, used to compute a 100(1-alpha)# confidence interval

Value

An object of the contingencytables_result class, basically a subclass of base::list(). Use the utils::str() function to see the specific elements returned.

Examples

Spearman_correlation_coefficient_rxc(table_7.7)
#> Spearman correlation w / Fieller CI:       rho = -0.0962 (95% CI -0.1692 to -0.0222)
#> Spearman correlation w / Bonett-Wright CI: rho = -0.0962 (95% CI -0.1653 to -0.0262)
Spearman_correlation_coefficient_rxc(table_7.8)
#> Spearman correlation w / Fieller CI:       rho =  0.6574 (95% CI  0.5413 to  0.7489)
#> Spearman correlation w / Bonett-Wright CI: rho =  0.6574 (95% CI  0.5360 to  0.7521)
Spearman_correlation_coefficient_rxc(table_7.9)
#> Spearman correlation w / Fieller CI:       rho =  0.3261 (95% CI  0.2873 to  0.3639)
#> Spearman correlation w / Bonett-Wright CI: rho =  0.3261 (95% CI  0.2885 to  0.3627)