
Correlation coefficents computation
calc_correlation.Rd
Computation of correlation coefficients.
Usage
calc_correlation(x, y, type = c("pearson", "kendall", "spearman"))
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