Dear All do you know how to transform a matrix to a so-called double centering matrix such that sum(col) and sum(row) of the transformed matrix are all 0 vector. thanks regards yong wang