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
keep common household information only in the first row of the householdHi all, I have data set with household characteristics. District Village Household_ID Menber_ID …
SignificanceI am analyzing the effect of gender on homeownership in the US and I keep finding that my female dum…
quick question about dividing the variable on the previous yearDear researchers, I have quick question, please. While I am reading papers, I have found one use the…
analyze the explanation of each X and the interaction of them to YDear Stata members, I have got a revise and resubmit from a journal. One of the referees have sugges…
Generalized Difference-in-DifferencesGood day all of you! I have a Diff-in-Diff model that I need help with. I want to estimate the ave…
Subscribe to:
Post Comments (Atom)
0 Response to Z-Score Problem
Post a Comment