correlation pearson R code example
Example 1: correlation matrix in r
result = cor(x, method = "pearson", use = "complete.obs")
round(result,2)
Example 2: calculate correlation in r
cor(x, method = "pearson", use = "complete.obs")
Example 3: Pearson correlation
The usual definition of correlation. Technically,
Corr[X,Y] = Cov[X,Y]/(Std[X] * Std[Y]).