I have a data file consisting of 57 variables. I want to transform about 12 of them into z-scores due to their uneven level of measurement. I looked up internet resources an
Simply, you forgot the brackets in: x - mean(x)/sd(x)
The correct code is: ( x - mean(x) ) /sd(x)