Skip to contents

[Superseded]

EFA_AVERAGE() has been superseded by efa_average(), which is the recommended interface going forward. It remains available and unchanged so existing code keeps working.

Usage

EFA_AVERAGE(
  x,
  n_factors,
  N = NA,
  method = "PAF",
  rotation = "promax",
  type = "none",
  averaging = c("mean", "median"),
  trim = 0,
  salience_threshold = 0.3,
  max_iter = 10000,
  init_comm = c("smc", "mac", "unity"),
  criterion = c(0.001),
  criterion_type = c("sum", "max_individual"),
  abs_eigen = c(TRUE),
  varimax_type = c("svd", "kaiser"),
  normalize = TRUE,
  k_promax = 2:4,
  k_simplimax = ncol(x),
  P_type = c("norm", "unnorm"),
  precision = 1e-05,
  start_method = c("psych", "factanal"),
  use = c("pairwise.complete.obs", "all.obs", "complete.obs", "everything",
    "na.or.complete"),
  cor_method = c("pearson", "spearman", "kendall", "poly", "tetra", "fiml"),
  show_progress = TRUE
)

Arguments

x

data.frame or matrix. Raw data or a correlation matrix.

n_factors

numeric. The number of factors to extract.

N

numeric. The number of observations. Needed only for a correlation matrix. Without N, the chi-square-based fit indices are NA.

method

character vector. Any combination of "PAF", "ML", and "ULS", the estimators to average across; passed to efa_average() as its estimator argument. Default is "PAF".

rotation

character vector. "none"; one or more orthogonal rotations ("varimax", "equamax", "quartimax", "geominT", "bentlerT", and "bifactorT"); or one or more oblique rotations ("promax", "oblimin", "quartimin", "simplimax", "bentlerQ", "geominQ", and "bifactorQ"). "orthogonal" and "oblique" select all rotations of that kind except the bifactor rotation, which looks for a different factor structure. Do not mix orthogonal and oblique rotations. Default is "promax".

type

character vector. Any combination of "none" (default), "EFAtools", "psych", and "SPSS". "none" uses the settings from the arguments below. The other types use the settings of that implementation (see efa_fit()). These differ for PAF, varimax, and promax only.

averaging

character. "mean" (default) or "median".

trim

numeric. The fraction of solutions to remove from each end before the mean is calculated (see base::mean()). Used only for averaging = "mean". Default is 0.

salience_threshold

numeric. A loading with an absolute value of at least this threshold is salient. Default is 0.3. Unrotated loadings of more than one factor seldom have a simple structure, so for rotation = "none", salience and admissibility are of little use.

max_iter

numeric. The maximum number of PAF iterations. Default is 10,000. A named type uses its own maximum (SPSS 25, psych 50, and EFAtools 300).

init_comm

character vector. Any combination of "smc", "mac", and "unity": the initial PAF communalities are the squared multiple correlations, the maximum absolute correlations, or 1. Default is all three.

criterion

numeric vector. The PAF convergence criterion. Default is 0.001.

criterion_type

character vector. Any combination of "sum" and "max_individual": PAF converges when the change in the sum of the communalities, or the largest change in one communality, is less than criterion. Default is both.

abs_eigen

logical vector. Any combination of TRUE and FALSE. If TRUE, PAF uses the absolute eigenvalues (as SPSS does); if FALSE, the eigenvalues (as psych::fa() does). Default is TRUE.

varimax_type

character vector. Any combination of "svd" (as stats::varimax()) and "kaiser" (as SPSS; Kaiser, 1958; Grieder & Steiner, 2022). Used for varimax and promax. Default is both.

normalize

logical vector. Any combination of TRUE and FALSE. If TRUE, a Kaiser normalization is done before the rotation. Default is TRUE.

k_promax

numeric vector. The power for the promax target matrix. Default is 2:4.

k_simplimax

numeric vector. The number of near-zero loadings for simplimax: whole numbers from 1 to the number of loadings. Default is ncol(x).

P_type

character vector. Any combination of "norm" and "unnorm". How the promax target matrix P is computed if "none" is among the specified types and "promax" or "oblique" is among the specified rotations: "unnorm" uses the unnormalized target matrix of Hendrickson and White (1964), "norm" a normalized one. This frozen argument keeps its original name; efa_average() takes the same setting as p_type. Default is c("norm", "unnorm").

precision

numeric vector. The convergence tolerance of the rotation. Default is 1e-5.

start_method

character vector. Any combination of "psych" and "factanal": the ML starting values of psych::fa() or stats::factanal(). Default is both.

use

character. Passed to stats::cor() for raw data. Default is "pairwise.complete.obs". Not used for cor_method = "fiml".

cor_method

character. The correlation for raw data: "pearson" (default), "spearman", "kendall", "poly", "tetra", or "fiml" (see efa_fit() and Details).

show_progress

logical. If TRUE (default), a progress bar is shown.

Value

The value of efa_average(), normally a list of class c("efa_average", "EFA_AVERAGE"); see there for the components.

See also