nice_loadings.Rd
Creates table of loadings of exploratory factor analysis based on the psych::fa function
nice_loadings(
x,
factor_names = NULL,
sort = TRUE,
cut = 0.2,
round = 2,
title = "Loading matrix",
footnote = NULL,
auto_labels = TRUE
)
nice_efa(..., file = NULL)
Object returned from the psych::fa function.
A character vector with names for the resulting factors. If not provided, default names are chosen.
If TRUE, loadings are sorted.
Loadings below cut will be omitted in the resulting data frame.
Number of digits to round loadings (based on the base::round function)
A data.frame
wmisc:::mtcars_labeled |>
rename_from_labels() |>
psych::fa(nfactors = 2) |>
nice_efa()
#> Loading required namespace: GPArotation
Table
Loading matrix
MR1
MR2
Loadings
Variances
Note. Extraction method is minres. Rotation method is oblimin. RMSEA is 0.178 CI90% [0.121, 0.245]. Loadings below |0.2| are not displayed.
nice_efa(
wmisc:::data_emo_fa,
factor_names = c(
"Emotionserkennung", "Resilienz",
"Aufmerksamkeit", "Erklärung für Emotionen"
)
)
Table
Loading matrix
Emotionserkennung
Resilienz
Aufmerksamkeit
Erklärung für Emotionen
Loadings
Variances
Note. Extraction method is minres. Rotation method is oblimin. RMSEA is 0.079 CI90% [0.07, 0.088]. Loadings below |0.2| are not displayed.