corw: produces a correlation matrix via weighted correlation.

Description Usage Arguments Value Author(s) Examples

View source: R/corw.R

Description

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

Usage

1
corw(mat, weights)

Arguments

mat

input matrix

weights

input weights, size of nrow of matrix

Value

matrix is output

Author(s)

Avants BB

Examples

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

neuroconductor-devel/ANTsR documentation built on April 1, 2021, 1:02 p.m.