Description
Symmetrize a beta (coefficient) matrix, ie. selected from MB neighborhood selection
Usage
symBeta(beta, mode = "ave")
Arguments
beta
square coefficient matrix
mode
how to symmetrize, see details
Value
a symmetric coefficient matrix
Details
Mode can be:
ave: Arithmetic average between the two possible values of beta
maxabs: The maximum [absolute] value between the two values
upper: Take the values from the upper triangle
lower: Take the values from the lower triangle