Example: Q-factor Analysis (PROXIMITIES command)
In this example, PROXIMITIES and FACTOR are used for a Q-factor analysis, in which factors account
for variance shared among observations rather than among variables.
Procedure FACTOR does not perform Q-factor analysis without some preliminary
transformation such as what is provided by PROXIMITIES. Because the number of cases exceeds the
number of variables, the model is not of full rank, and FACTOR will print a warning. This result
is a common occurrence when case-by-case matrices from PROXIMITIES are used as input to FACTOR.
* Recoding a PROXIMITIES matrix for procedure FACTOR.
GET FILE='/data/crime.sav'.
PROXIMITIES MURDER TO MOTOR
/MEASURE=CORR
/MATRIX=OUT('/data/tempfile.sav').
GET FILE='/data/tempfile.sav' /DROP=ID.
RECODE ROWTYPE_ ('PROX' = 'CORR').
FACTOR MATRIX IN(COR=*).
- The
MATRIXsubcommand onPROXIMITIESwrites the correlation matrix to the active dataset. Because the matrix materials will be used in procedureFACTOR, theIDsubcommand is not specified. -
RECODErecodes ROWTYPE_ value PROX to CORR so that procedureFACTORcan read the matrix. - When
FACTORreads matrix materials, it reads all variables in the file. TheMATRIXsubcommand onFACTORindicates that the matrix is a correlation matrix and that data are in the active dataset.