
Last chance! 50% off unlimited learning
Sale ends in
Reshape loadings between wide/long formats.
reshape_loadings(x, ...)# S3 method for parameters_efa
reshape_loadings(x, threshold = NULL, ...)
# S3 method for data.frame
reshape_loadings(x, threshold = NULL, loadings_columns = NULL, ...)
A data frame or a statistical model.
Arguments passed to or from other methods.
A value between 0 and 1 indicates which (absolute) values from the loadings should be removed. An integer higher than 1 indicates the n strongest loadings to retain. Can also be "max"
, in which case it will only display the maximum loading per variable (the most simple structure).
Vector indicating the columns corresponding to loadings.
# NOT RUN {
library(parameters)
library(psych)
pca <- model_parameters(psych::fa(attitude, nfactors = 3))
loadings <- reshape_loadings(pca)
loadings
reshape_loadings(loadings)
# }
Run the code above in your browser using DataLab