Skip to content

cmerinos/facomplex

Repository files navigation

facomplex.

facomplex is an R package that provides tools for assessing factor complexity in exploratory and exploratory structural equations modeling analysis (EFA/ESEM) solutions.

Installation

You can install the development version of facomplex from GitHub using:

# Install devtools if not already installed
install.packages("devtools")

# Then install the package from GitHub
devtools::install_github("cmerinos/facomplex", build_vignettes = TRUE)

Overview

The package includes several methods for evaluating factor complexity:

  • Hofman coefficient (Hofman, 1977) for items (rows) and factors (columns)
  • Revised Hofman coefficient
  • Factor Simplicity Index: factor (Fleming, 2003)
  • Factor Simplicity Index: items (Kaiser, 1974)
  • Bentler’s Simplicity Index (Bentler, 1977)
  • Loading Simplicity Index (Lorenzo-Seva, 2003)
  • Sum of squared loadings for target and non-target factor loadings
  • Descriptive statistics (min, max, mean) of target and non-target loadings
  • Visualization tools for complexity structures

Example

Here's a basic example using facomplex:

library(facomplex)

# Example factor loading matrix
ex1_fl <- data.frame(
  F1 = c(0.536, 0.708, 0.600, 0.673, 0.767, 0.481, -0.177, 0.209, -0.097, -0.115, 0.047, 0.024),
  F2 = c(-0.110, 0.026, 0.076, 0.011, -0.160, 0.106, 0.668, 0.438, 0.809, 0.167, 0.128, 0.041),
  F3 = c(-0.100, 0.036, 0.086, 0.021, -0.150, 0.116, 0.678, 0.448, 0.819, 0.577, 0.738, 0.751)
)

# Run a complexity analysis function (e.g., FSI)
FSIout <- FSI(ex1_fl,  
     items_target = list(F1 = c(1, 2, 3, 4, 5, 6),
                         F2 = c(7, 8, 9),
                         F3 = c(10, 11, 12)))

# Visualize the results
plot.simplicity(
   data = FSIout$FSI_i,
   item.col = "Items",
   value.col = "FSI_i")

References

License

This package is licensed under the GPL-3.

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages