ItemRest is an R package developed to automate item removal
strategies in Exploratory Factor Analysis (EFA).
It helps researchers identify low-quality items using statistical
criteria and simulate the impact of different removal combinations on
the factor structure and internal consistency of the scale.
- Automatically identifies cross-loading and low-loading items based on customizable thresholds.
- Tests all possible combinations of flagged items.
- Reports explained variance, Cronbach’s alpha, and factor loading range for each solution.
- Highlights optimal strategies with no cross-loading items.
- Built on top of
psych
,GPArotation
,EFAtools
, andqgraph
packages.
Install the package directly from GitHub using the devtools
package:
# First install devtools if not already installed:
install.packages("devtools")
# Then install ItemRest from GitHub:
devtools::install_github("ahmetcaliskan1987/ItemRest")
library(ItemRest) # We will use the ‘bfi’ dataset from the ‘psych’ package for a realistic example. # This requires the ‘psych’ package to be installed. # The ‘bfi’ dataset contains responses to 25 personality items.
data(bfi, package = “psych”) example_data <- bfi[, 1:25] example_data <- na.omit(example_data)
results <- itemrest( data = example_data, n_factors = 5, cor_method = “pearson” # Data is not ordinal, so pearson is appropriate )
print(results, report = “optimal”)
This package is distributed under the MIT License.
See the LICENSE file for more details.