Hi there,
I have 2 dependent variables, and they need to be z-transformed because i need to compare the coefficients.
Therefore they need to have a mean of 0 and a sd of 1.
I tried several things an all the time the mean was not 0 or it didn`t work at all.
not with: zscore var (mean was not 0)
not with: sum var; return list; gen z_var =(var-r(mean))/(r(ad)) --> this didn´t work at all, everything was missing
not with: gen sd_var=1.497557613512159; gen mean_var=7.563358582616511; gen z_var =var-mean_var/sd_var (mean is not 0)
I didn`t understand the zcalc command.
Can sombody help me with the z-scores?
Thank you
Anna Hebel
I have 2 dependent variables, and they need to be z-transformed because i need to compare the coefficients.
Therefore they need to have a mean of 0 and a sd of 1.
I tried several things an all the time the mean was not 0 or it didn`t work at all.
not with: zscore var (mean was not 0)
not with: sum var; return list; gen z_var =(var-r(mean))/(r(ad)) --> this didn´t work at all, everything was missing
not with: gen sd_var=1.497557613512159; gen mean_var=7.563358582616511; gen z_var =var-mean_var/sd_var (mean is not 0)
I didn`t understand the zcalc command.
Can sombody help me with the z-scores?
Thank you
Anna Hebel
Comment