Learn R Programming

generalCorr (version 1.2.6)

symmze: Replace asymmetric matrix by max of abs values of [i,j] or [j,i] elements.

Description

It is useful in symmetrizing the gmcmtx0 matrix containing a non-symmetric generalized correlation matrix.

Usage

symmze(mtx)

Value

mtx2

replace [i,j] and [j,i] by the max of absolute values with common sign

Arguments

mtx

non-symmetric matrix

Author

Prof. H. D. Vinod, Economics Dept., Fordham University, NY.

Examples

Run this code

if (FALSE) {
example 
mtx=matrix(1:16,nrow=4)
symmze(mtx)
}#' 

Run the code above in your browser using DataLab