New SAS User

Completely new to SAS or trying something new with SAS? Post here for help getting started.
BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Jonison
Fluorite | Level 6

Hello, all, I am currently transferring a analysis tools from SIMCA to SAS, and when I did PCA analysis comparison, I found the scores calculated by two software are same value but with different sign (same data and pretreatment), for example, the score for pc1 from SIMCA is 1.55133 but from SAS enterprise miner v14 is -1.55133 (same thing for loading results). I dont think they are wrong results, but need to identical as the results are used by other modelling tools that may impact the prediction results. 

 

any suggestions that could make the PCA calculation identical? 

 

Many thanks.

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
PaigeMiller
Diamond | Level 26

There is no unique answer to the sign of principal components scores. Both of the results are equivalent. As far as I know, you can't force SAS to match the sign of some other principal components algorithm.

 

If you have a model that used the SIMCA scores but now will be using the SAS scores, you could multiply the scores by -1, or change the way the model handles them.

--
Paige Miller

View solution in original post

2 REPLIES 2
PaigeMiller
Diamond | Level 26

There is no unique answer to the sign of principal components scores. Both of the results are equivalent. As far as I know, you can't force SAS to match the sign of some other principal components algorithm.

 

If you have a model that used the SIMCA scores but now will be using the SAS scores, you could multiply the scores by -1, or change the way the model handles them.

--
Paige Miller
Jonison
Fluorite | Level 6

Thank you for your help!

sas-innovate-white.png

Our biggest data and AI event of the year.

Don’t miss the livestream kicking off May 7. It’s free. It’s easy. And it’s the best seat in the house.

Join us virtually with our complimentary SAS Innovate Digital Pass. Watch live or on-demand in multiple languages, with translations available to help you get the most out of every session.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 904 views
  • 0 likes
  • 2 in conversation