09 September 2018 4 3K Report

I'm working on data that I want to transform in order to get a normal distribution. However, some of these values are negative. I can of course add a random constant, but to use it on multiple variables, I would like to add the lowest number in the list so everything will turn positive.

So far I tried this in the COMPUTE VARIABLE menu:

"Transformed_variabel"=LG10("Variable"+ABS(MIN("Variable")))

With LG10 being the log transformation, ABS to return the absolute value of the lowest number and MIN to return the lowest number.

What am I doing wrong? Can I use "MIN" in this way?

UPDATE:

To answer your comments so far: I have of course looked at the data first. A histogram of the data showed a left-skewed distribution. The data that I'm talking about is a difference in weight% before and after an intervention. Nevertheless, when applying a logarithmic formula to any type of data, the answer should be the same.

Similar questions and discussions