calculate_wgt_cor: Calculate weighted Pearson correlation coefficient

View source: R/calculate_wgt_corr.R

calculate_wgt_corR Documentation

Calculate weighted Pearson correlation coefficient

Description

The function calculates a weighted Pearson correlation coefficient between variable A and B using wtd.cor.

Usage

calculate_wgt_cor(d.sub, x, y)

Arguments

d.sub

a dataframe with data.

x

character string of the name of variable A.

y

character string of the name of variable B.

Value

the numeric value of the correlation coefficient.


lorecatta/DENVfoiMap documentation built on April 1, 2022, 4:05 p.m.