Learn R Programming

ANTsR (version 1.0)

corw: produces a correlation matrix via weighted correlation.

Description

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

Usage

wmat<-corw( mat  )

Arguments

mat

input matrix

Value

matrix is output

Examples

Run this code
# NOT RUN {
mat <- matrix(c(rep(1,100),rep(0,20)),ncol=10)
wcmat<-corw( mat , weights = rep(1,ncol(mat) ) ) 
# }

Run the code above in your browser using DataLab