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:

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 <- simload(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.

mirror server hosted at Truenetwork, Russian Federation.