Skip to main content
Lightly edited language for grammar and clarity
Source Link
mkt
  • 20.4k
  • 11
  • 81
  • 187

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.   

enter image description here

This is my rawThis is my raw data

I would like to know how to transform negative values to Log(), since I have heteroskedastic data. I read that it works with the formula Log(x+1) but this doesn't work with my database and I continue getting NaNs as result. E.g. I get this Warning message (I didn't put my complete database because I think with one of my negative values is enough to show an example):

> 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 the difference between variables like Ca and Zn is too big, then I need some type of data standardization, that is why I'm testing the log() function.  enter image description here

This is my raw data

I would like to know how to transform negative values to log(), since I have heteroskedastic data. I've read that log(x+1) solves the problem but this doesn't work with my data and I continue getting NaNs as result.

For e.g. I get this warning message (I didn't put my complete database because I think one of my negative values is enough to show the problem):

> log(-1.27+1)
[1] NaN
Warning message:
In log(-1.27 + 1) : NaNs produced
> 

UPDATE:

Here is an histogram of my data. I'm working with palaeontological time series of chemical measurements. If the difference between (for e.g.) variables like Ca and Zn is too big, I need some type of data standardization, which is why I'm testing the log() function. 

enter image description here

This is my raw data

edited tags
Link
mkt
  • 20.4k
  • 11
  • 81
  • 187
added 75 characters in body
Source Link
Darwin PC
  • 551
  • 2
  • 5
  • 10

I would like to know how to transform negative values to Log(), since I have heteroskedastic data. I read that it works with the formula Log(x+1) but this doesn't work with my database and I continue getting NaNs as result. E.g. I get this Warning message (I didn't put my complete database because I think with one of my negative values is enough to show an example):

> 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 the difference between variables like Ca and Zn is too big, then I need some type of data standardization, that is why I'm testing the log() function. enter image description here

This is my raw data

I would like to know how to transform negative values to Log(), since I have heteroskedastic data. I read that it works with the formula Log(x+1) but this doesn't work with my database and I continue getting NaNs as result. E.g. I get this Warning message (I didn't put my complete database because I think with one of my negative values is enough to show an example):

> 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 the difference between variables like Ca and Zn is too big, then I need some type of data standardization, that is why I'm testing the log() function. enter image description here

I would like to know how to transform negative values to Log(), since I have heteroskedastic data. I read that it works with the formula Log(x+1) but this doesn't work with my database and I continue getting NaNs as result. E.g. I get this Warning message (I didn't put my complete database because I think with one of my negative values is enough to show an example):

> 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 the difference between variables like Ca and Zn is too big, then I need some type of data standardization, that is why I'm testing the log() function. enter image description here

This is my raw data

Tweeted twitter.com/#!/StackStats/status/606379625254686720
edited title
Link
Nick Cox
  • 59.5k
  • 8
  • 136
  • 212
Loading
added 363 characters in body
Source Link
Darwin PC
  • 551
  • 2
  • 5
  • 10
Loading
Source Link
Darwin PC
  • 551
  • 2
  • 5
  • 10
Loading