if you are using stata, the code can be summarized in 3 codes mentioned below with very brief notes;
.pca variable_x - variable_y //(this represents dichotomized variables, and continuous asset variables chosen consciously, replace variable_x-variable_y with a list of your assets)
. predict wealthscore //(by putting only one name; you get eigen vectors, or weights, of the first principal component, which we assume is reflective of wealth)