powered by
kmo() handles both positive definite and not-positive definite matrix by employing the Moore-Penrose inverse (pseudoinverse)
kmo()
kmo(x, squared = TRUE)
a matrix or dataframe
TRUE if matrix is squared (such as adjacency matrices), FALSE otherwise
A list with
overall - Overall KMO value
overall
individual - Individual KMO's dataframe
individual
AIS - Anti-image Covariance Matrix
AIS
AIR - Anti-image Correlation Matrix
AIR
# NOT RUN { set.seed(123) df <- as.data.frame(matrix(rnorm(100*10, 1, .5), ncol=10)) kmo(df, squared = FALSE) # }
Run the code above in your browser using DataLab