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
Related Posts with Z-Score Problem
Compute a composite measure of several variablesHi, I have a panel data. I want to perform principal component analysis over the three continuous va…
Recommendations for descriptive analysis?Hello, I am a STATA-beginner and looking for recommendations for good tutorials or codes on descrip…
Regressions: ommisions due to collinearityDear statalist users, I am running a regression in which I have 2 fixed effects: year and 2-digit S…
Investor turnoverHi all, First of all, thank you for help in advance. I'm trying to calculate the churn rate (CR) and…
Matrix row calculationsHey everybody, once again im asking for your help! Could you please tell me how to multiply the elem…
Subscribe to:
Post Comments (Atom)
0 Response to Z-Score Problem
Post a Comment