# How to transform negative data to be homoscedastic

I have a bunch of data that's both positive and negative. Its calculated from the residuals of an ANOVA (i.e. specific leaf area calculated as the residuals of an ANOVA of leaf area with leaf blade weight). Right now the data is not homoscedastic or normal. Since I can't log negative numbers I'm unsure of how to make the data normal or homoscedastic. Could I square the residuals and then log them? Should I use the logs of leaf area and leaf blade weight to calculate the specific leaf area? I believe they were homoscedastic. Any help would be appreciated.

I think we need much more context on what you did and why you think you need to make these values more nearly normal. It is possible that you need to focus on developing a different model, not massaging the results of a model that is not quite satisfactory.

On a mechanistic level, cube roots act symmetrically on a variable that is positive, zero and negative and may pull in the tails of a distribution that is approximately symmetric but heavier-tailed than Gaussian or normal. I have sometimes found this useful for raw data. Note that in most software you need to do something like

sign(x) * abs(x)^(1/3)


because powering will just give missings for negative values. More at e.g. http://www.stata-journal.com/sjpdf.html?articlenum=st0223

More esoteric functions can be suggested to do this e.g. the neglog function or some inverse hyperbolic function, but the cube root is simpler in the sense that it is met earlier in one's mathematical training.

x_transformed = log(x + C)

where C is a constant that allows x+C to be greater than zero. E.g., C = 1 - min(x).