creating z-scores

后端 未结 3 737
逝去的感伤
逝去的感伤 2020-12-05 05:45

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

3条回答
  •  鱼传尺愫
    2020-12-05 06:12

    Simply, you forgot the brackets in: x - mean(x)/sd(x)

    The correct code is: ( x - mean(x) ) /sd(x)

提交回复
热议问题