| print.GPArotation | R Documentation |
Print and summary methods for objects returned by GPFRSorth,
GPFRSoblq, GPForth, or GPFoblq.
Both print.GPArotation and summary.GPArotation apply
consistent factor sorting and sign correction via the internal helper
.sortGPALoadings when sortLoadings = TRUE. Factors are
ordered by descending variance explained and signs are adjusted so that
the sum of loadings per factor is positive. This convention matches
that used by factanal.
For oblique rotations, summary.GPArotation displays both the
pattern matrix (regression coefficients of items on factors, controlling
for factor intercorrelations) and the structure matrix
(loadings %*% Phi, correlations between items and factors)
when Structure = TRUE. The two matrices coincide for orthogonal
rotations where \Phi = I.
Output includes contributions of factors via SS loadings
(sum of squared loadings); see Harman (1976), sections 2.4 and 12.4.
## S3 method for class 'GPArotation'
print(x, digits=3, sortLoadings=TRUE, rotateMat=FALSE, Table=FALSE, ...)
## S3 method for class 'GPArotation'
summary(object, digits=3, Structure=TRUE, ...)
## S3 method for class 'summary.GPArotation'
print(x, ...)
x |
a |
object |
a |
digits |
precision of printed numbers. |
sortLoadings |
logical; if |
rotateMat |
logical; if |
Table |
logical; if |
Structure |
logical; if |
... |
further arguments passed to other methods. |
Factor sorting and sign correction are applied consistently in both
print and summary via the internal function
.sortGPALoadings, adapted from factanal sorting
conventions (R Core Team). This ensures that the pattern matrix shown
by summary is consistent with the loadings shown by
print.
The digits argument controls the number of decimal places
shown in the loadings, structure matrix, and Phi.
For examples see GPFRSorth and the package vignettes:
vignette("GPA1guide", package = "GPArotation").
print.GPArotation returns the sorted GPArotation
object invisibly when sortLoadings = TRUE, or the unsorted
object when sortLoadings = FALSE.
summary.GPArotation returns a summary.GPArotation object
with sorted loadings and, for oblique rotations, the structure matrix.
print.summary.GPArotation returns the object invisibly.
Harman, H.H. (1976). Modern Factor Analysis. The University of Chicago Press.
GPFRSorth,
GPForth,
factanal,
summary
data(Harman, package = "GPArotation")
res <- oblimin(Harman8, normalize = TRUE, randomStarts = 100)
# Print sorted loadings (default)
print(res)
# Print unsorted loadings
print(res, sortLoadings = FALSE)
# Summary with pattern and structure matrices
summary(res, Structure = TRUE)
# Summary without structure matrix
summary(res, Structure = FALSE)
# Print with iteration table
print(res, Table = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.