naginterfaces.library.mv.rot_​orthomax

naginterfaces.library.mv.rot_orthomax(stand, g, fl, acc=1e-05, maxit=30)[source]

rot_orthomax computes orthogonal rotations for a matrix of loadings using a generalized orthomax criterion.

For full information please refer to the NAG Library document for g03ba

https://www.nag.com/numeric/nl/nagdoc_28.5/flhtml/g03/g03baf.html

Parameters
standstr, length 1

Indicates if the matrix of loadings is to be row standardized before rotation.

The loadings are row standardized.

The loadings are left unstandardized.

gfloat

, the criterion constant with giving varimax rotations and giving quartimax rotations.

flfloat, array-like, shape

, the matrix of loadings. must contain the loading for the th variable on the th factor, for , for .

accfloat, optional

Indicates the accuracy required. The iterative procedure of Cooley and Lohnes (1971) will be stopped and the final refinement computed when the change in is less than . If is greater than or equal to but less than machine precision or if is greater than , machine precision will be used instead.

maxitint, optional

The maximum number of iterations.

Returns
flfloat, ndarray, shape

If , the elements of are standardized so that the sum of squared elements for each row is and then after the computation of the rotations are rescaled; this may lead to slight differences between the input and output values of .

If , will be unchanged on exit.

flrfloat, ndarray, shape

The rotated matrix of loadings, . will contain the rotated loading for the th variable on the th factor, for , for .

rfloat, ndarray, shape

The matrix of rotations, .

iteraint

The number of iterations performed.

Raises
NagValueError
(errno )

On entry, .

Constraint: .

(errno )

On entry, and .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: .

(errno )

On entry, .

Constraint: or .

(errno )

On entry, .

Constraint: .

(errno )

The singular value decomposition has failed to converge.

(errno )

The algorithm to find R has failed to reach the required accuracy in iterations.

Notes

In the NAG Library the traditional C interface for this routine uses a different algorithmic base. Please contact NAG if you have any questions about compatibility.

Let be the matrix of loadings from a variable-directed multivariate method, e.g., canonical variate analysis or factor analysis. This matrix represents the relationship between the original variables and the orthogonal linear combinations of these variables, the canonical variates or factors. The latter are only unique up to a rotation in the -dimensional space they define. A rotation can then be found that simplifies the structure of the matrix of loadings, and hence the relationship between the original and the derived variables. That is, the elements, , of the rotated matrix, , are either relatively large or small. The rotations may be found by minimizing the criterion:

where the constant gives a family of rotations with giving varimax rotations and giving quartimax rotations.

It is generally advised that factor loadings should be standardized, so that the sum of squared elements for each row is one, before computing the rotations.

The matrix of rotations, , such that , is computed using first an algorithm based on that described by Cooley and Lohnes (1971), which involves the pairwise rotation of the factors. Then a final refinement is made using a method similar to that described by Lawley and Maxwell (1971), but instead of the eigenvalue decomposition, the algorithm has been adapted to incorporate a singular value decomposition.

References

Cooley, W C and Lohnes, P R, 1971, Multivariate Data Analysis, Wiley

Lawley, D N and Maxwell, A E, 1971, Factor Analysis as a Statistical Method, (2nd Edition), Butterworths