powered by
Uses weighted regression to compute pairwise correlation matrix on input matrix - by columns.
corw(mat, weights)
input matrix
input weights, size of nrow of matrix
matrix is output
# 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