DM Stat-1 Articles
Link to Home

Link to Articles

Link to Consulting

Link to Seminar

Link to Stat-Chat

Link to Software

Link to Clients

Technical Report #2:
Scoring A Principal Component
Bruce Ratner, Ph.D.

Principal Components Analysis (PCA) is a powerful exploratory data analysis technique, which can be used to uncover unexpected relationships among many variables. This report provides a SAS-code program for performing PCA, and for scoring principal components on an external dataset.

I provide an illustration of typical PCA output along with the SAS-code program which produced it. The program should be a welcomed entry in the toolkit of data analysts who frequently work with BIG data.


********** SAS-code Program **********

Data set IN is found in Technical Report #6.

proc
princomp data= IN n=4 outstat=coef out=IN_pcs prefix=pc_ std;
var GENDER_F GENDER_M MARITAL_M MARITAL_S;
run;

proc score data=IN_pcs out=IN_pc_scored score=coef ;
var GENDER_F GENDER_M MARITAL_M MARITAL_S; 
run;





For more information about this article, call Bruce Ratner at 516.791.3544, 1 800 DM STAT-1, or e-mail at br@dmstat1.com.