View source: R/calculate_wgt_corr.R
calculate_wgt_cor | R Documentation |
The function calculates a weighted Pearson correlation coefficient between
variable A and B using wtd.cor
.
calculate_wgt_cor(d.sub, x, y)
d.sub |
a dataframe with data. |
x |
character string of the name of variable A. |
y |
character string of the name of variable B. |
the numeric value of the correlation coefficient.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.