loadings_table_psych: Factor loadings table from psych object

Description Usage Arguments Value Examples

Description

Creates a factor loading table

Usage

1
2
loadings_table_psych(psych_object, cutoff = 0.2, roundto = 3,
  trim = 0, fac.lab = NULL, var.lab = NULL, communalities = T)

Arguments

psych_object

The Factor analysis psych object

cutoff

loadings whose absolute value are less than this are excluded

roundto

rounding to how many digits

trim

Removes the first n characters of the Description column when rendering the table.

fac.lab

Alternative factor labels

var.lab

Alternative variable labels

communalities

include communalities?

Value

A table with rounded factor loadings, ommiting weak loadings with variable information on the side.

Examples

1
2
3
4
library(datasets)
corr.matrix <- cor(mtcars)
results <- psych::fa(corr.matrix, 3, rotate = "varimax")
FAtools::loadings_table_psych(results, cutoff = 0.3, roundto = 2)

mattkcole/FAtools documentation built on May 21, 2019, 1:24 p.m.