Open
Description
I need to use a weight correlation because some samples represent more population than others.
I know how to do a weighted correlation matrix but not using cor_test (e.g., cor.wt {psych}, or cov.wt(data %>% select(-weight), wt=data$weight, cor=TRUE)).
Would it be possible to implement a weighted (and pairwise) correlation here?
Super appreciate if there is help or recommendations.