symmetric {DGM} | R Documentation |
Turns asymetric network into an symmetric network. Helper function to determine the detection of a connection while ignoring directionality.
symmetric(M)
M |
3D matrix nodes x nodes x subjects |
3D matrix nodes x nodes x subjects
M=array(NA, dim=c(3,3,2))
M[,,1]=matrix(c(0,0,0,1,0,0,0,1,0),3,3)
M[,,2]=matrix(c(0,0,0,1,0,0,0,0,0),3,3)
M_=symmetric(M)