Learn R Programming

generalCorr (version 1.2.0)

symmze: Replace asymmetric matrix by max of abs values of [ij] or [ji] elements useful in symmetrizing gmcmtx0 general correlation matrix

Description

Replace asymmetric matrix by max of abs values of [ij] or [ji] elements useful in symmetrizing gmcmtx0 general correlation matrix

Usage

symmze(mtx)

Arguments

mtx

non-symmetric matrix

Value

mtx2

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

Examples

Run this code
# NOT RUN {
# }
# NOT RUN {
example 
mtx=matrix(1:16,nrow=4)
symmze(mtx)
# }
# NOT RUN {
#' 
# }

Run the code above in your browser using DataLab