Learn R Programming

⚠️There's a newer version (1.2.3) of this package.Take me there.

EFAfactors (version 1.2.1)

Determining the Number of Factors in Exploratory Factor Analysis

Description

Provides a collection of standard factor retention methods in Exploratory Factor Analysis (EFA), making it easier to determine the number of factors. Traditional methods such as the scree plot by Cattell (1966) , Kaiser-Guttman Criterion (KGC) by Guttman (1954) and Kaiser (1960) , and flexible Parallel Analysis (PA) by Horn (1965) based on eigenvalues form PCA or EFA are readily available. This package also implements several newer methods, such as the Empirical Kaiser Criterion (EKC) by Braeken and van Assen (2017) , Comparison Data (CD) by Ruscio and Roche (2012) , and Hull method by Lorenzo-Seva et al. (2011) , as well as some AI-based methods like Comparison Data Forest (CDF) by Goretzko and Ruscio (2024) and Factor Forest (FF) by Goretzko and Buhner (2020) . Additionally, it includes a deep neural network (DNN) trained on large-scale datasets that can efficiently and reliably determine the number of factors.

Copy Link

Version

Install

install.packages('EFAfactors')

Monthly Downloads

303

Version

1.2.1

License

GPL-3

Maintainer

Haijiang Qin

Last Published

February 17th, 2025

Functions in EFAfactors (1.2.1)

data.datasets

Subset Dataset for Training the Pre-Trained Deep Neural Network (DNN)
check_python_libraries

Check and Install Python Libraries (numpy and onnxruntime)
FF

Factor Forest (FF) Powered by An Tuned XGBoost Model for Determining the Number of Factors
KGC

Kaiser-Guttman Criterion
Hull

the Hull Approach
af.softmax

An Activation Function: Softmax
GenData

Simulating Data Following John Ruscio's RGenData
data.bfi

25 Personality Items Representing 5 Factors
PA

Parallel Analysis
load_xgb

Load the Tuned XGBoost Model
extractor.feature.DNN

Extracting features for the Pre-Trained Deep Neural Network (DNN)
plot.CD

Plot Comparison Data for Factor Analysis
model.xgb

the Tuned XGBoost Model for Determining the Number of Facotrs
data.scaler

the Scaler for the Pre-Trained Deep Neural Network (DNN)
factor.analysis

Factor Analysis by Principal Axis Factoring
load_scaler

Load the Scaler for the Pre-Trained Deep Neural Network (DNN)
load_DNN

Load the Trained Deep Neural Network (DNN)
plot.EFAvote

Plot Voting Results for Number of Factors
plot.EKC

Plot Empirical Kaiser Criterion (EKC) Plot
extractor.feature.FF

Extracting features According to Goretzko & Buhner (2020)
plot.KGC

Plot Kaiser-Guttman Criterion (KGC) Plot
plot.FF

Plot Factor Forest (FF) Classification Probability Distribution
predictLearner.classif.xgboost.earlystop

Prediction Function for the Tuned XGBoost Model with Early Stopping
print.CD

Print Comparison Data Method Results
print.EFAdata

Print the EFAsim.data
plot.EFAkmeans

Plot EFA K-means Clustering Results
print.EFAhclust

Print EFAhclust Method Results
plot.Hull

Plot Hull Plot for Factor Analysis
plot.CDF

Plot Comparison Data Forest (CDF) Classification Probability Distribution
plot.EFAscreet

Plots the Scree Plot
print.FF

Print Factor Forest (FF) Results
print.Hull

Print Hull Method Results
print.CDF

Print Comparison Data Forest (CDF) Results
plot.PA

Plot Parallel Analysis Scree Plot
print.DNN_predictor

Print DNN Predictor Method Results
plot.DNN_predictor

Plot DNN Predictor Classification Probability Distribution
plot.EFAhclust

Plot Hierarchical Cluster Analysis Dendrogram
print.EFAvote

Print Voting Method Results
print.EFAkmeans

Print EFAkmeans Method Results
print.EFAscreet

Print the Scree Plot
print.KGC

Print Kaiser-Guttman Criterion Results
normalizor

Feature Normalization
print.PA

Print Parallel Analysis Method Results
print.EKC

Print Empirical Kaiser Criterion Results
EFAhclust

Hierarchical Clustering for EFA
EFAvote

Voting Method for Number of Factors in EFA
EFAindex

Various Indeces in EFA
CDF

the Comparison Data Forest (CDF) Approach
EFAkmeans

K-means for EFA
CD

the Comparison Data (CD) Approach
EFAscreet

Scree Plot
EKC

Empirical Kaiser Criterion
DNN_predictor

A Pre-Trained Deep Neural Network (DNN) for Determining the Number of Factors
EFAsim.data

Simulate Data that Conforms to the theory of Exploratory Factor Analysis.