Perform Spearman rank correlation test
performSpearmanTest.RdComputes Spearman's rho between absolute residuals and fitted values.
Details
The squared rank correlation coefficient times the sample size minus 1 approximates a chi-square distribution with one degree of freedom.
References
Spearman, C. (1904). The proof and measurement of association between two things. American Journal of Psychology, 15(1), 72–101.