View source: R/getFactorLoadingsTable.r
getFactorLoadingsTable | R Documentation |
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.
getFactorLoadingsTable(FAResult, toClipboard = TRUE)
FAResult |
An object of class "factanal" i.e. the output from running the |
toClipboard |
Indicates if the table of variance should be written to the cliboard (default) or printed to the console. |
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 getScreePlot
# Using the built in data frame, mtcars:
fa1 = factanal(mtcars, factors = 3, rotation = "promax")
getFactorLoadingsTable(fa1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.