EKC() has been superseded by efa_ekc(), which is the recommended interface
going forward. It remains available and unchanged so existing code keeps working.
Usage
EKC(
x,
N = NA,
use = c("pairwise.complete.obs", "all.obs", "complete.obs", "everything",
"na.or.complete"),
cor_method = c("pearson", "spearman", "kendall", "poly", "tetra"),
type = lifecycle::deprecated()
)Arguments
- x
data.frame or matrix. Raw data or a correlation matrix.
- N
numeric. The number of observations. Only needed if
xis a correlation matrix. Must be larger than the number of variables.- use
character. The missing-data policy for raw data. Passed to
stats::cor()for"pearson","spearman", and"kendall"; for"poly"/"tetra"the same policies are applied to the raw data before the polychoric estimation, where"all.obs"and"everything"abort on a missing value instead of returningNAcorrelations. Default is"pairwise.complete.obs".- cor_method
character. Correlation computed from raw data:
"pearson","spearman", or"kendall"(passed tostats::cor()), or"poly"/"tetra"for polychoric / tetrachoric correlations of ordinal / binary data (a two-step estimator). Default is"pearson". Note that the EKC reference values rest on the Marchenko-Pastur law for the eigenvalues of a sample correlation matrix of independent variables, which assumes the sampling behaviour of product-moment correlations; with"poly"/"tetra"(and, to a lesser degree, the rank-based methods) the reference series is therefore an approximation.- type
Accepted and ignored. The reference values always follow Braeken and van Assen (2017). The
"AM2019"reference values do not depend on the observed eigenvalues, so they do not apply the empirical correction that defines the criterion.
Value
An object of class efa_retention, identical to the value of
efa_ekc(); see there for the components.