Hi everyone,
I want to standardize a variable within each year. So I used
but I got this message from stata: egen ... std() may not be combined with by.
So, is there another option to use for this purpose knowing that my variable is a categorical variable (I don't know if this information is important, however)
Thanks in advance and sorry, my question may be so simple!
I want to standardize a variable within each year. So I used
Code:
egen zCSR= std( CSR),by( year)
So, is there another option to use for this purpose knowing that my variable is a categorical variable (I don't know if this information is important, however)
Thanks in advance and sorry, my question may be so simple!
Comment