calculateWeightsPCA function

Calculate composite weights using principal component analysis (PCA)