- df
A data frame containing the items for EFA.
- features
A vector of feature names (or indices) in df to
include in the factor analysis.
- algorithm
Character. The factor extraction method to use.
Default is "minres". Other methods supported by
psych (e.g., "ml", "minchi") may also be used.
- rotation
Character. The rotation method to apply to the factor
solution. Default is "promax".
- parallel.analysis
Logical. If TRUE, runs parallel analysis using
psych::fa.parallel to recommend the number of
factors. Default is TRUE.
- nfactors
Integer. The number of factors to extract. If NULL
and parallel.analysis = TRUE, the number of
factors recommended by the parallel analysis is used.
- dict
A data frame dictionary with at least two columns:
"name" and "description". Used to replace
feature names with human-readable labels. Default is
dictionary(df, attribute = "label").
- minimum_loadings
Numeric. Any factor loading with an absolute value
lower than this threshold is set to zero. Default is
0.30.
- exclude_features
Character vector. Features to exclude from the analysis.
Default is NULL.
- ignore_binary
Logical. If TRUE, binary items may be ignored
in the analysis. Default is TRUE.
- intercorrelation
Numeric. (Unused in current version) Intended to set
a minimum intercorrelation threshold between items.
Default is 0.3.
- reverse_features
A vector of feature names for which the scoring
should be reversed prior to analysis. Default is
NULL.
- plot
Logical. If TRUE, a factor diagram is plotted
using psych::fa.diagram. Default is FALSE.
- factor_names
Character vector. Optional names to assign to the
extracted factors (i.e., new column names for loadings).
- verbose
Logical. If TRUE, the factor loadings are printed in the console.