getFactorLoadingsTable: Extract an ordered factor loadings table from a factor...

View source: R/getFactorLoadingsTable.r

getFactorLoadingsTableR Documentation

Extract an ordered factor loadings table from a factor analysis object

Description

After running a factor analysis (using factanal) this function will extract an ordered table of loadings from the result, with an additional column displaying uniqueness. The result is copied to the clipboard.

Usage

getFactorLoadingsTable(FAResult, toClipboard = TRUE)

Arguments

FAResult

An object of class "factanal" i.e. the output from running the factanal function.

toClipboard

Indicates if the table of variance should be written to the cliboard (default) or printed to the console.

Details

The loadings from factanal are returned with the rows ordered the same as the input columns. This function reorders them so that the variables are grouped based on the factor the load most heavily on.

A uniqueness value is also added. Uniqueness is the proportion of variance of the variable that is not accounted for by all of the factors taken together. A high uniqueness can indicate that a variable may not belong with any of the factors. (Uniqueness is equal to 1 - communality.).

See Also

See also getScreePlot

Examples

# Using the built in data frame, mtcars:
fa1 = factanal(mtcars, factors = 3, rotation = "promax")
getFactorLoadingsTable(fa1)


Dectech/DectechR documentation built on Feb. 15, 2024, 9:17 a.m.