I have already done PCA analysis- and obtained three principal components- but I don´t know how to transform these into an index. I know, for example, in Stata there ir a command " predict index, score" but I am not finding the way to do this in R. What I want to do is to create a socioeconomic index, from variables such as level of education, internet access, etc, using PCA. Thank you!