Hi, everyone. I have a problem when standardizing a variable into z-score in stata.
summarize x
generate x_s= (x- r(mean))/r(std)
The following commands used to work but now it doesn't. I wonder why it does not work to standardize the variable. Is the local macro problem? I don't want to use egen to generate. Thanks a lot.
summarize x
generate x_s= (x- r(mean))/r(std)
The following commands used to work but now it doesn't. I wonder why it does not work to standardize the variable. Is the local macro problem? I don't want to use egen to generate. Thanks a lot.
Comment