This is a re-implementation of stats::varimax,
which (1) adds a parameter for the maximum number of iterations,
(2) sets the default normalize parameter to FALSE,
(3) outputs the number of iteration taken, and
(4) returns regular matrix rather than in loadings class.
varimax(x, normalize = FALSE, eps = 1e-05, maxit = 1000L)A list with three elements:
the rotated matrix.
the (orthogonal) rotation matrix.
the number of iterations taken.
A loadings matrix, with \(p\) rows and \(k < p\) columns
logical. Should Kaiser normalization be performed?
If so the rows of x are re-scaled to unit length before
rotation, and scaled back afterwards.
The tolerance for stopping: the relative change in the sum of singular values.
integer, maximum number of iteration (default to 1,000).