Learn R Programming

correlationr (version 0.1.0)

rMED: Median Based (MED) Correlations

Description

Performs a median based correlation which is used to examine whether two continuous variables (X and Y) are linearly related using a median correlation coefficient.

Usage

rMED(x, y)

Value

a correlation value (r) that ranges from -1 to +1

Arguments

x

a continuous variable

y

a continuous variable

Examples

Run this code
rMED(SwimLessons$Temp, SwimLessons$SwimTime)

Run the code above in your browser using DataLab