powered by
sym
sym(a)
any matrix
symmetrize matrix when matrix is theoretically symmetric but not in numerically
Li, B. (2018). Sufficient dimension reduction: Methods and applications with R. CRC Press.
# NOT RUN { ex <- matrix(c(1.1,2.1,1.2,2.2),2,2) result <- sym(ex) # }
Run the code above in your browser using DataLab