Search code examples
saslogistic-regressionpca

Performing PCA on numeric values in SAS


I am performing PCA on the numeric columns present in my dataset.These numeric columns are in the same range so still do i need to standardize( Using PROC STANDARD) those columns before performing PCA on them?


Solution

  • You do not need to standardize them before running proc princomp. Add the std option to produce standardized principal component scores.

    proc princomp data=mydata out=scores std;
        var var1 var2 var3;
    run;