Principal Components Example Syntax

From Displayr
Jump to navigation Jump to search

The following SPSS syntax generates the example on the main Principal Components Analysis page.

MATRIX DATA VARIABLES=ROWTYPE_ WoS Grand MoD Boxing Rugby Pan hours24 lineUp Today ThisWeek.
BEGIN DATA
N 200 200 200 200 200 200 200 200 200 200
CORR 1 
CORR 0.6 1 
CORR 0.6 0.6 1 
CORR 0.5 0.5 0.5 1 
CORR 0.3 0.3 0.3 0.3 1 
CORR 0.2 0.2 0.1 0.2 0.1 1 
CORR 0.1 0.1 0.1 0.1 0.1 0.5 1 
CORR 0.1 0.1 0 0.1 0.1 0.2 0.3 1 
CORR 0.1 0.1 0 0.1 0.1 0.2 0.2 0.2 1
CORR 0.1 0.1 0.1 0.1 0.1 0.4 0.4 0.2 0.3 1
END DATA.
FACTOR
 /MATRIX = in(cor = *) 
 /ANALYSIS WoS to ThisWeek
 /PRINT INITIAL EXTRACTION ROTATION FSCORE
 /CRITERIA MINEIGEN(1) ITERATE(9999)
 /PLOT EIGEN
 /EXTRACTION PC
 /CRITERIA ITERATE(9999)
 /ROTATION VARIMAX
 /METHOD=CORRELATION.

The following SPSS syntax generates the example on the main Principal Components Analysis page.

MATRIX DATA VARIABLES=ROWTYPE_ WoS Grand MoD Boxing Rugby Pan hours24 lineUp Today ThisWeek.
BEGIN DATA
N 200 200 200 200 200 200 200 200 200 200
CORR 1 
CORR 0.6 1 
CORR 0.6 0.6 1 
CORR 0.5 0.5 0.5 1 
CORR 0.3 0.3 0.3 0.3 1 
CORR 0.2 0.2 0.1 0.2 0.1 1 
CORR 0.1 0.1 0.1 0.1 0.1 0.5 1 
CORR 0.1 0.1 0 0.1 0.1 0.2 0.3 1 
CORR 0.1 0.1 0 0.1 0.1 0.2 0.2 0.2 1
CORR 0.1 0.1 0.1 0.1 0.1 0.4 0.4 0.2 0.3 1
END DATA.
FACTOR
 /MATRIX = in(cor = *) 
 /ANALYSIS WoS to ThisWeek
 /PRINT INITIAL EXTRACTION ROTATION FSCORE
 /CRITERIA MINEIGEN(1) ITERATE(9999)
 /PLOT EIGEN
 /EXTRACTION PC
 /CRITERIA ITERATE(9999)
 /ROTATION VARIMAX
 /METHOD=CORRELATION.