| apa_factor_cor | R Documentation |
Makes an APA-style table of the correlations among factors (or
components) from an obliquely rotated solution: a psych::fa() or
psych::principal() object, or the output of
parameters::factor_analysis() or parameters::principal_components().
For a lavaan model, the table shows the correlations among the latent
variables in the fully standardized solution. When latent variables are
linked by regression paths, these correlations are implied by the model.
apa_factor_cor(fit, factor_names = NULL, digits = 2)
fit |
a |
factor_names |
names for the factors. Either an unnamed character vector in the order the factors appear in the table (psych orders factors by variance explained), or a named vector that maps the original names to new names (e.g., |
digits |
number of decimal places (unaffected by
|
The factors are numbered in the first column, and the numbers are used as
column headers. Only the lower triangle is shown. The factors are in the
same order as in apa_loadings().
apa7_tbl (tibble)
fit <- psych::fa(Harman74.cor$cov, 4, fm = "pa", rotate = "oblimin")
apa_factor_cor(
fit,
factor_names = c("Verbal", "Spatial", "Speed", "Memory")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.