Learn R Programming

PMmisc (version 0.1.2)

cor.spearman: Spearman rank correlation

Description

Calculate Spearman Rank Correlation, which is the nonparametric version of the Pearson product-moment correlation.

Usage

cor.spearman(x,y)

Arguments

x

:a numeric variable

y

:a numeric variable

Examples

Run this code
# NOT RUN {
 cor.spearman(mtcars[,1], mtcars[,3])
# }

Run the code above in your browser using DataLab