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 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 587 views
  • 0 likes
  • 2 in conversation