KGC() has been superseded by efa_kgc(), which is the recommended interface
going forward. It remains available and unchanged so existing code keeps working.
Arguments
- x
data.frame or matrix. Raw data or a correlation matrix.
- eigen_type
character. One or more of
"PCA","SMC", and"EFA"(seeefa_kgc()). Default is all three.- 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".- n_factors
numeric. Number of factors to extract if "EFA" is included in
eigen_type. Default is 1.- ...
Further arguments passed on to the
efa_fit()fit. For example,estimator, to change the estimator (PAF is default), or one of the estimation tuning knobs (type,init_comm,criterion,criterion_type,max_iter,abs_eigen,start_method), which are repacked into anestimate_control()object so that they tune the fit exactly as they always did.
Value
An object of class efa_retention, identical to the value of
efa_kgc(); see there for the components.