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
Parallelising tasksHi all, maybe this is a naive question. However, let's say I have either a for loop or a collapse l…
spatial models and variable interactionsHello to this very precious forum, I would like to ask why spatial panel models (e.g by the command …
Add/substract a certain number of WEEKDAYS from a daily dateHi, I would like to add/substract a certain number of WEEKDAYS from a daily date (rdq). minus 10 an…
Multilevel variance conf. interval is not estimableHello all, I'm examining the association between race of the defendent (5 groups) and the legal pro…
Checking for specific string valuesDear Statlist community, Despite being a very simple question, I did not figure how to perform this…
Subscribe to:
Post Comments (Atom)
0 Response to Z-Score Problem
Post a Comment