1

Could you please explain how to use principal components in principal component analysis in a correlation analysis? I performed a PCA on my dataset and extracted 2 components; Now I'm wondering how to use pearson or spearman correlation analaysis to find out the correlation between PC1(or PC2) and, let' say, a continuous variable?

Many thanks!

I tried and extarcted 2 components;but I just don't know how to do a correlation analysis?!

4
  • You could add a supplementary variable in your PCA, as presented here. Then, you can visualize the correlation between your supplementary variable and your components (PC1 and PC2), as presented in the website Commented Apr 5, 2023 at 12:18
  • 1
    Hi Erfan, welcome to SO! Could you please edit your post to include a reproducible example? This will help us understand where you’re stuck and provide relevant help. Thanks! Commented Apr 5, 2023 at 12:22
  • 1
    Stack Overflow is for specific programming questions. Asking how to do a statistical analysis is off-topic. You should ask such questions at Cross Validated instead. Commented Apr 5, 2023 at 13:30
  • Thanks a lot! I didn't notice that R "principal" function provides us with PC factors of each observation (each participant) Commented Apr 10, 2023 at 14:11

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.