Hi everyone,

I am created an asset index for my paper using Principle Components Analysis. I used two different codes

In the first code i used just PCA and got a positive coefficient but when i used the second code with factor (1) i got a negative coefficient. I am wondering which is more accurate and which one should i use for my paper and what is the difference between just doing a PCA and doing a pca, factor(1) or pca, factor(3)?

Code:
***First Code
pca $assets
rotate
predict asset_index
    drop S4D_Q1_2-S10_mud_rof_5


Code:
***Second Code
pca $assets, factor(1)
rotate
predict asset_index
    drop S4D_Q1_2-S10_mud_rof_5