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.
psych, GPArotation,
EFAtools, and qgraph 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.