association
Spearman correlation
Measure monotone association using ranks.
Requirements
- two ordinal/continuous variables
Avoid when
- non-monotone association
- need slope in original units
Formula
ρ = cor(rank(x), rank(y))
Interpretation
rho describes rank-order association.
Worked example
Estimate a monotonic association between disease stage and biomarker level.
Open example datasets