powered by
Checks if a given matrix is a correlation matrix for non-degenerate distributions.
is.corrmatrix(matrix)
A logical value: True/False.
a (non-empty) numeric matrix of data values.
m1<-matrix(c(1,2,2,1),nrow = 2,byrow = TRUE) is.corrmatrix(m1) m2<-matrix(c(1,0.8,0.8,1),nrow = 2,byrow = TRUE) is.corrmatrix(m2) m3<-matrix(c(1,0.7,0.8,1),nrow = 2,byrow = TRUE) is.corrmatrix(m3)
Run the code above in your browser using DataLab