标准化的话可以用egen std()解决。参考help egen
std(exp) [, mean(#) std(#)]
may not be combined with by. It creates the standardized values of exp. The options specify the
desired mean and standard deviation. The default is mean(0) and std(1), producing a variable
with mean 0 and standard deviation 1.
怎么变成0到10之间你得自己想好要怎么算,然后再来考虑怎么用stata实现的问题。