This function computed the linear correlation between two vectors or a correlation matrix for an input matrix.
The following methods to compute linear correlations are implemented in this function:
lin.cor(x, y = NULL, method = "pearson", test.na = FALSE)
method = "pearson"
: Pearson's correlation coefficient (centred).
method = "pearson2"
: Pearson's uncentred correlation coefficient.
method = "sq_pearson"
. Squared Pearson's correlation coefficient.
method = "kendall"
: Kendall's correlation coefficient.
method = "spearman"
: Spearman's correlation coefficient.
Further Details:
Pearson's correlation coefficient (centred) :