In Excel you can do the calculation of the standard deviation in two different ways in order to perform a Z-Transformation. Once as a formula for sample data and once as a formula for population data. The difference is divided by N or divided by N-1. So this brings minimally different results of the standard deviation and with this the Z-Scores afterwards.
In Stata, the default formula within egen newvar=std (oldvar) is set to a treatment as sample data. I learned this by comparing both Excel versions to the Stata version. The Stata Z transformation matches the Excel Z transformation for sample data. But I can’t find a way to change this within the egen command options. For my purposes, I need the Z-transformation for population data. A workaround would be to just import the calculated Excel values into stata or live with minimal differences, but both are not the perfect solution.
Maybe someone knows a solution for my problem. I would appreciate the help.
Best, Stephan
Related Posts with Z-Transformation for Population Data
Help with dynamic panels (xtabond)Hi all! First time posting here. I am writing research on digitalization in EU28 and its economic …
Storing values to a list and expand the list in each iterationI would like store certain values to a list and drop if certain variable's value is equivalent to th…
Maximum likelihood estimation with by(sort) commandDear, I hope you are all in good health. I'm estimating the amount of sorting across schools by est…
"Prob > F" is larger than 0.5 for a single linear regressionArray I am writing a simple linear regression. Inventory data of products are dependent variable P…
Display "Robust" at the top of Std.Err. column using -ereturn display-Dear Statalist, I have a rather technical question regarding displaying estimation commands. I am w…
Subscribe to:
Post Comments (Atom)
0 Response to Z-Transformation for Population Data
Post a Comment