Gradient projection rotation optimization routine used by various rotation objective.
1 2 3 4 5
initial factor loadings matrix for which the rotation criterian is to be optimized.
initial rotation matrix.
rotation objective criterian.
convergence is assumed when the norm of the gradient is smaller than eps.
maximum number of iterations allowed in the main loop.
a list ofmethodArgs arguments passed to the rotation objective
Gradient projection rotation optimization routines developed by
Coen A. Bernaards and Robert I. Jennrich. These functions can be used directly
to rotate a loadings matrix, or indirectly through a rotation
objective passed to a factor estimation routine such as
For examples of the indirect use see the documention for
rotations (such as
GPForth is the main GP algorithm for orthogonal rotation.
GPFoblq is the main GP algorithm for oblique rotation.
Both algorithms require a loadings matrix
A which fixes the
equivalence class over which the optimization is done. It must be
the solution to the orthogonal factor analysis problem.
A rotation is defined as
A %*% t(solve(Tmat)). For the
Tmat is orthonormal so this simplifies
A %*% Tmat. The starting point for
iterative optimization is given by the
Tmat rotation of
By default the initial rotation is the
identity matrix. For some rotation criteria local optima may exist
and it is recommended to check for this by starting with many different
initial rotations. The function
Random.Start will help to do
method can be used to specify a string indicating
the rotation objective.
GPFoblq defaults to
GPForth defaults to
"varimax". Available rotation objectives
The string is prefixed with
"vgQ." to give the actual function call. The
vgQ.* function call
would typically not be used directly, so these methods are not exported
from the package namespace. You can print these functions to see the code for
calculating a criterion, but since they are not exported the package
name needs to be specified. For example, use
GPArotation:::vgQ.oblimin to view the function
Some rotation criteria (including
require one or more additional arguments. For example,
needs the number of 'close to zero loadings' which is given as
the extra argument
k. Check the rotation methods for details.
(If a new rotation method is implemented and needs additional
arguments then this is the way to pass them.)
normalize gives an indication of if and how any
normalization should be done before rotation, and then undone after rotation.
FALSE (the default) no normalization is done.
TRUE then Kaiser normalization is done. (So
squared row entries of normalized
A sum to 1.0. This is sometimes called
normalize is a vector of length equal to the number of indicators (=
number of rows of
A) then the colums are divided by
before rotation and multiplied by
normalize after rotation.
normalize is a function then it should take
A as an argument
and return a vector which is used like the vector above.
A GPArotation object which is a list with elements
The rotated loadings, one column for each factor.
The rotation matrix, Lh %*% t(Th) = A.
A matrix recording the iterations of the rotation optimization.
A string indicating the rotation objective function.
A logical indicating if the rotation is orthogonal.
A logical indicating if convergence was obtained.
t(Th) %*% Th. The covariance matrix of the rotated factors. This will be the identity matrix for orthogonal rotations so is omitted (NULL) for the result from GPForth.
The gradient of the objective function at the rotated loadings.
Coen A. Bernaards and Robert I. Jennrich with some R modifications by Paul Gilbert
Bernaards, C.A. and Jennrich, R.I. (2005) Gradient Projection Algorithms and Software for Arbitrary Rotation Criteria in Factor Analysis. Educational and Psychological Measurement, 65, 676–696.
Theory of gradient projection algorithms may be found in:
Jennrich, R.I. (2001). A simple general procedure for orthogonal rotation. Psychometrika, 66, 289–306.
Jennrich, R.I. (2002). A simple general method for oblique rotation. Psychometrika, 67, 7–19.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
data("Harman", package="GPArotation") qHarman <- GPForth(Harman8, Tmat=diag(2), method="quartimax") data("WansbeekMeijer", package="GPArotation") fa.unrotated <- factanal(factors = 2, covmat=NetherlandsTV, normalize=TRUE, rotation="none") GPForth(loadings(fa.unrotated), method="varimax", normalize=TRUE)$loadings TV <- GPFoblq(loadings(fa.unrotated), method="oblimin", normalize=TRUE) print(TV) print(TV, Table=TRUE) summary(TV)