Correlation coefficents computation
calc_correlation.Rd
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
Examples
x <- rnorm(100,1)
calc_correlation(x,x)
#> [1] 1