Learn R Programming

ANTsR (version 0.3.1)

corw: 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

Examples

Run this code
# NOT RUN {
mat <- matrix( rnorm(100), nrow=10 )
wcmat<-corw( mat , weights = abs( nrorm( nrow(mat) ) ) )
# }

Run the code above in your browser using DataLab