Calculates weighted Pearson correlation coefficient between actual and predicted
values by the help of stats::cov.wt()
.
weighted_cor(actual, predicted, w = NULL, na.rm = FALSE, ...)
Observed values.
Predicted values.
Optional case weights.
Should observations with missing values in actual
or predicted
be removed? Default is FALSE
.
Further arguments passed to stats::cov.wt()
.
A length-one numeric vector.