| sfa_nfactors | R Documentation |
Runs multiple factor retention methods on an embedding similarity matrix and
tabulates the results, mirroring the workflow of
N_FACTORS.
sfa_nfactors(
sim_matrix,
embeddings = NULL,
methods = "parallel",
seed = 42L,
parallel_iter = 100L,
max_factors = NULL,
rotate = "oblimin",
fm = "minres",
...
)
sim_matrix |
Numeric similarity matrix (n_items x n_items). |
embeddings |
Numeric embedding matrix (n_items x embedding_dim).
Required when |
methods |
Character vector of retention methods to run. Supported:
|
seed |
Random seed for parallel analysis. |
parallel_iter |
Iterations for parallel analysis. |
max_factors |
Maximum factors to test for TEFI (default: auto). |
rotate |
Rotation for TEFI extraction (default |
fm |
Extraction method for TEFI (default |
... |
Additional arguments (currently unused). |
An object of class "sfa_nfactors" with:
Data frame with one row per method: method name, suggested
n_factors.
Integer: modal recommendation across methods. When two
or more recommendations tie for the mode, the smallest tied value is
returned (the more parsimonious solution). With a single method this
equals that method's suggestion, and print() omits the
consensus line.
Numeric vector: observed eigenvalues.
Parallel analysis result (if run), or NULL.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.