I would like to know how to transform negative values to Loglog()
, since I have heteroskedastic data. II've read that it works with the formula Loglog(x+1)
solves the problem but this doesn't work with my databasedata and I continue getting NaNs as result. E
For e.g. I get this Warningwarning message (I didn't put my complete database because I think with one of my negative values is enough to show an examplethe problem):
> log(-1.27+1)
[1] NaN
Warning message:
In log(-1.27 + 1) : NaNs produced
>
Thanks in advance
UPDATE:
Here is an histogram of my data. I'm working with palaeontological time series of chemical measurements, E.g If the difference between (for e.g.) variables like Ca and Zn is too big, then I need some type of data standardization, thatwhich is why I'm testing the log()
function.
This is my rawThis is my raw data