0

I am using example data "mtcars" to compute a PCA in R:

pca <- principal(mtcars, nfactors = 2, rotate = "varimax")

There is no deeper meaning behind the specification, just an example with two factors. However, now I want to extract a so called "Component Score Coefficient Matrix" (terminology from SPSS). See also the following link: https://docs.displayr.com/wiki/Component_Score_Coefficient_Matrix

Using SPSS, i am able to extract this "Component Score Coefficient Matrix" after computing PCA with 2 factors and varimax rotation:

enter image description here

Based on the SPSS documentation, these are the coefficients by which the variables are multiplied to obtain factor scores. Is there any way to extract this kind of coefficients(-matrix) with the function "principal"? Or any other function to compute pca in R? A calculation by hand would also be helpful. I am grateful for any help.

1
  • 2
    try pca$weights
    – user20650
    Aug 8, 2022 at 17:24

1 Answer 1

1

user20650 provided the right answer in a comment:

try pca$weights

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.