calc_correlation: Correlation coefficents computation

View source: R/calc_correlation.r

calc_correlationR Documentation

Correlation coefficents computation

Description

Computation of correlation coefficients.

Usage

calc_correlation(x, y, type = c("pearson", "kendall", "spearman"))

Arguments

x

A numeric vector

y

A numeric vector

type

A character single value, that is the type of the correlation to be computed

Details

Currently, it is possible to compute the following metrics:


- Kendall's Tau correlation coefficient
- Pearson linear correlation coefficient
- Spearmann correlation coefficient

Value

A numeric single value with the computed value.

Examples


x <- rnorm(100,1)

calc_correlation(x,x)


vbfelix/relper documentation built on May 10, 2024, 10:50 p.m.