NAG Library Routine Document
g03bdf
(rot_promax)
1
Purpose
g03bdf calculates a ProMax rotation, given information following an orthogonal rotation.
2
Specification
Fortran Interface
Subroutine g03bdf ( |
stand,
n,
m,
x,
ldx,
ro,
ldro,
power,
fp,
ldfp,
r,
ldr,
phi,
ldphi,
fs,
ldfs,
ifail) |
Integer, Intent (In) | :: |
n,
m,
ldx,
ldro,
ldfp,
ldr,
ldphi,
ldfs | Integer, Intent (Inout) | :: |
ifail | Real (Kind=nag_wp), Intent (In) | :: |
x(ldx,m),
ro(ldro,m),
power | Real (Kind=nag_wp), Intent (Inout) | :: |
fp(ldfp,m),
r(ldr,m),
phi(ldphi,m),
fs(ldfs,m) | Character (1), Intent (In) | :: |
stand |
|
C Header Interface
#include nagmk26.h
void |
g03bdf_ (
const char *stand,
const Integer *n,
const Integer *m,
const double x[],
const Integer *ldx,
const double ro[],
const Integer *ldro,
const double *power,
double fp[],
const Integer *ldfp,
double r[],
const Integer *ldr,
double phi[],
const Integer *ldphi,
double fs[],
const Integer *ldfs,
Integer *ifail,
const Charlen length_stand) |
|
3
Description
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
Optionally, the rows of target matrix can be scaled by the communalities of loadings.
4
References
None.
5
Arguments
- 1: – 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: – IntegerInput
-
On entry: , the number of points.
Constraint:
.
- 3: – IntegerInput
-
On entry: , the number of dimensions.
Constraint:
.
- 4: – Real (Kind=nag_wp) arrayInput
-
On entry: the loadings matrix following an orthogonal rotation, .
- 5: – IntegerInput
-
On entry: the first dimension of the array
x as declared in the (sub)program from which
g03bdf is called.
Constraint:
.
- 6: – Real (Kind=nag_wp) arrayInput
-
On entry: the orthogonal rotation matrix, .
- 7: – IntegerInput
-
On entry: the first dimension of the array
ro as declared in the (sub)program from which
g03bdf is called.
Constraint:
.
- 8: – Real (Kind=nag_wp)Input
-
On entry: , the value of exponent.
Constraint:
.
- 9: – Real (Kind=nag_wp) arrayOutput
-
On exit: the factor pattern matrix, .
- 10: – IntegerInput
-
On entry: the first dimension of the array
fp as declared in the (sub)program from which
g03bdf is called.
Constraint:
.
- 11: – Real (Kind=nag_wp) arrayOutput
-
On exit: the ProMax rotation matrix, .
- 12: – IntegerInput
-
On entry: the first dimension of the array
r as declared in the (sub)program from which
g03bdf is called.
Constraint:
.
- 13: – Real (Kind=nag_wp) arrayOutput
-
On exit: the matrix of inter-factor correlations, .
- 14: – IntegerInput
-
On entry: the first dimension of the array
phi as declared in the (sub)program from which
g03bdf is called.
Constraint:
.
- 15: – Real (Kind=nag_wp) arrayOutput
-
On exit: the factor structure matrix, .
- 16: – IntegerInput
-
On entry: the first dimension of the array
fs as declared in the (sub)program from which
g03bdf is called.
Constraint:
.
- 17: – IntegerInput/Output
-
On entry:
ifail must be set to
,
. If you are unfamiliar with this argument you should refer to
Section 3.4 in How to Use the NAG Library and its Documentation 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 argument, 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).
6
Error Indicators and Warnings
If on entry
or
, explanatory error messages are output on the current error message unit (as defined by
x04aaf).
Errors or warnings detected by the routine:
-
On entry, .
Constraint: .
On entry, .
Constraint: .
On entry, .
Constraint: or .
-
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: .
-
SVD failed to converge.
-
An internal error has occurred in this routine. Check the routine call and any array sizes. If the call is correct then please contact
NAG for assistance.
An unexpected error has been triggered by this routine. Please
contact
NAG.
See
Section 3.9 in How to Use the NAG Library and its Documentation for further information.
Your licence key may have expired or may not have been installed correctly.
See
Section 3.8 in How to Use the NAG Library and its Documentation for further information.
Dynamic memory allocation failed.
See
Section 3.7 in How to Use the NAG Library and its Documentation for further information.
7
Accuracy
The calculations are believed to be stable.
8
Parallelism and Performance
g03bdf is threaded by NAG for parallel execution in multithreaded implementations of the NAG Library.
g03bdf 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 routine. Please also consult the
Users' Note for your implementation for any additional implementation-specific information.
None.
10
Example
This example reads a loadings matrix and calculates a varimax transformation before calculating , and for a ProMax rotation.
10.1
Program Text
Program Text (g03bdfe.f90)
10.2
Program Data
Program Data (g03bdfe.d)
10.3
Program Results
Program Results (g03bdfe.r)