Description Usage Arguments Value Source Examples
This function computes weighted Pearson correlation between two vectors with weights given. The output is between -1 and 1 with 1 being highly positively correlated, -1 being highly negatively correlated, and 0 being no correlation
1 | wt.corr(x, y, w)
|
x |
a vector |
y |
a vector with same length of x |
w |
a vector with same length of x and y |
a numerical value of weighted Pearson correlation
https://en.wikipedia.org/wiki/Pearson_correlation_coefficient#Weighted_correlation_coefficient
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.