The function may be called by the names: g03bdc, nag_mv_rot_promax or nag_mv_promax.
3Description
Let and denote matrices each representing a set of points in an -dimensional space. The matrix is a matrix of loadings as returned by g03bac, that is following an orthogonal rotation of a loadings matrix . The target matrix is calculated as a power transformation of that preserves the sign of the loadings. Let and denote the th element of matrices and . Given a value greater than for the exponent :
for
;
;
The above power transformation tends to increase the difference between high and low values of loadings and is intended to increase the interpretability of a solution.
In the second step a solution of:
is found for in the least squares sense by use of singular value decomposition of the orthogonal loadings . The ProMax rotation matrix is then given by
where is the rotation matrix from an orthogonal transformation, and is a matrix with the square root of diagonal elements of on its diagonal and zeros elsewhere.
The ProMax factor pattern matrix is given by
the inter-factor correlations are given by
where ; and the factor structure is given by
Optionally, the rows of target matrix can be scaled by the communalities of loadings.
4References
None.
5Arguments
1: – Nag_RotationLoadingInput
On entry: indicates how loadings are normalized.
Rows of are (Kaiser) normalized by the communalities of the loadings.
Rows are not normalized.
Constraint:
or .
2: – IntegerInput
On entry: , the number of points.
Constraint:
.
3: – IntegerInput
On entry: , the number of dimensions.
Constraint:
.
4: – const doubleInput
Note: the th element of the matrix is stored in .
On entry: the loadings matrix following an orthogonal rotation, .
5: – IntegerInput
On entry: the stride separating matrix column elements in the array x.
Constraint:
.
6: – const doubleInput
Note: the th element of the matrix is stored in .
On entry: the orthogonal rotation matrix, .
7: – IntegerInput
On entry: the stride separating matrix column elements in the array ro.
Constraint:
.
8: – doubleInput
On entry: , the value of exponent.
Constraint:
.
9: – doubleOutput
Note: the th element of the matrix is stored in .
On exit: the factor pattern matrix, .
10: – IntegerInput
On entry: the stride separating matrix column elements in the array fp.
Constraint:
.
11: – doubleOutput
Note: the th element of the matrix is stored in .
On exit: the ProMax rotation matrix, .
12: – IntegerInput
On entry: the stride separating matrix column elements in the array r.
Constraint:
.
13: – doubleOutput
Note: the th element of the matrix is stored in .
On exit: the matrix of inter-factor correlations, .
14: – IntegerInput
On entry: the stride separating matrix column elements in the array phi.
Constraint:
.
15: – doubleOutput
Note: the th element of the matrix is stored in .
On exit: the factor structure matrix, .
16: – IntegerInput
On entry: the stride separating matrix column elements in the array fs.
Constraint:
.
17: – NagError *Input/Output
The NAG error argument (see Section 7 in the Introduction to the NAG Library CL Interface).
6Error Indicators and Warnings
NE_ALLOC_FAIL
Dynamic memory allocation failed.
NE_INT
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: .
NE_INT_2
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
On entry, and .
Constraint: .
NE_INTERNAL_ERROR
An internal error has occurred in this function. Check the function call and any array sizes. If the call is correct then please contact NAG for assistance.
NE_REAL_ARG_LE
On entry, .
Constraint: .
NE_SVD_FAIL
SVD failed to converge.
7Accuracy
The calculations are believed to be stable.
8Parallelism and Performance
Background information to multithreading can be found in the Multithreading documentation.
g03bdc is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
g03bdc makes calls to BLAS and/or LAPACK routines, which may be threaded within the vendor library used by this implementation. Consult the documentation for the vendor library for further information.
Please consult the X06 Chapter Introduction for information on how to control and interrogate the OpenMP environment used within this function. Please also consult the Users' Note for your implementation for any additional implementation-specific information.
9Further Comments
None.
10Example
This example reads a loadings matrix and calculates a varimax transformation before calculating , and for a ProMax rotation.