corw: produces a correlation matrix via weighted correlation.

View source: R/corw.R

corwR Documentation

produces a correlation matrix via weighted correlation.

Description

Uses weighted regression to compute pairwise correlation matrix on input matrix - by columns.

Usage

corw(mat, weights)

Arguments

mat

input matrix

weights

input weights, size of nrow of matrix

Value

matrix is output

Author(s)

Avants BB

Examples


mat <- matrix(rnorm(100), nrow = 10)
wcmat <- corw(mat, weights = abs(nrorm(nrow(mat))))


stnava/ANTsR documentation built on March 24, 2024, 6:13 a.m.