weightedSpearman_matrix: weightedSpearman_matrix (not recommended to run, use...

Description Usage Arguments Value Examples

View source: R/DCARS.R

Description

The weightedSpearman_matrix function calculates a vector of weighted correlations for two given data vectors, for a matrix of given weights.

Usage

1

Arguments

x

x and y are data vectors

y

x and y are data vectors

W

weight matrix, values should be between 0 and 1, number of columns should be the same as length(x) and length(y)

Value

vector weighted correlation values between x and y

Examples

1
2
3
4
x = rnorm(100)
y = rnorm(100)
W = weightMatrix(100)
weightedSpearman_matrix(x,y,w)

shazanfar/DCARS documentation built on Oct. 14, 2020, 11:11 a.m.