Code for PCA on economic observations