G03BDF calculates a ProMax rotation, given information following an orthogonal rotation.
SUBROUTINE G03BDF ( |
STAND, N, M, X, LDX, RO, LDRO, POWER, FP, LDFP, R, LDR, PHI, LDPHI, FS, LDFS, IFAIL) |
INTEGER |
N, M, LDX, LDRO, LDFP, LDR, LDPHI, LDFS, IFAIL |
REAL (KIND=nag_wp) |
X(LDX,M), RO(LDRO,M), POWER, FP(LDFP,M), R(LDR,M), PHI(LDPHI,M), FS(LDFS,M) |
CHARACTER(1) |
STAND |
|
Let
and
denote
by
matrices each representing a set of
points in an
-dimensional space. The
matrix is a matrix of loadings as returned by
G03BAF, 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 one 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
None.
- 1: STAND – CHARACTER(1)Input
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: N – INTEGERInput
On entry: , the number of points.
Constraint:
.
- 3: M – INTEGERInput
On entry: , the number of dimensions.
Constraint:
.
- 4: X(LDX,M) – REAL (KIND=nag_wp) arrayInput
On entry: the loadings matrix following an orthogonal rotation, .
- 5: LDX – INTEGERInput
On entry: the first dimension of the array
X as declared in the (sub)program from which G03BDF is called.
Constraint:
.
- 6: RO(LDRO,M) – REAL (KIND=nag_wp) arrayInput
On entry: the orthogonal rotation matrix, .
- 7: LDRO – INTEGERInput
On entry: the first dimension of the array
RO as declared in the (sub)program from which G03BDF is called.
Constraint:
.
- 8: POWER – REAL (KIND=nag_wp)Input
On entry: , the value of exponent.
Constraint:
.
- 9: FP(LDFP,M) – REAL (KIND=nag_wp) arrayOutput
On exit: the factor pattern matrix, .
- 10: LDFP – INTEGERInput
On entry: the first dimension of the array
FP as declared in the (sub)program from which G03BDF is called.
Constraint:
.
- 11: R(LDR,M) – REAL (KIND=nag_wp) arrayOutput
On exit: the ProMax rotation matrix, .
- 12: LDR – INTEGERInput
On entry: the first dimension of the array
R as declared in the (sub)program from which G03BDF is called.
Constraint:
.
- 13: PHI(LDPHI,M) – REAL (KIND=nag_wp) arrayOutput
On exit: the matrix of inter-factor correlations, .
- 14: LDPHI – INTEGERInput
On entry: the first dimension of the array
PHI as declared in the (sub)program from which G03BDF is called.
Constraint:
.
- 15: FS(LDFS,M) – REAL (KIND=nag_wp) arrayOutput
On exit: the factor structure matrix, .
- 16: LDFS – INTEGERInput
On entry: the first dimension of the array
FS as declared in the (sub)program from which G03BDF is called.
Constraint:
.
- 17: IFAIL – INTEGERInput/Output
-
On entry:
IFAIL must be set to
,
. If you are unfamiliar with this parameter you should refer to
Section 3.3 in the Essential Introduction for details.
For environments where it might be inappropriate to halt program execution when an error is detected, the value
is recommended. If the output of error messages is undesirable, then the value
is recommended. Otherwise, if you are not familiar with this parameter, the recommended value is
.
When the value is used it is essential to test the value of IFAIL on exit.
On exit:
unless the routine detects an error or a warning has been flagged (see
Section 6).
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
X04AAF).
The calculations are believed to be stable.
None.
This example reads a loadings matrix and calculates a varimax transformation before calculating , and for a ProMax rotation.