We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8481a4a commit 6f2e885Copy full SHA for 6f2e885
R/n_factors.R
@@ -151,7 +151,7 @@ n_factors <- function(x,
151
# Smooth matrix if negative eigen values
152
if (any(eigen_values < 0)) {
153
insight::check_if_installed("psych")
154
- correlation_matrix <- psych::cor.smooth(cor, ...)
+ correlation_matrix <- psych::cor.smooth(correlation_matrix, ...)
155
eigen_values <- eigen(correlation_matrix)$values
156
}
157
0 commit comments