I have a continuous dependent variable which has a somewhat skewed distribution and hence I want to apply a log transform to it. But the problem is that the target variable can have negative values.
To counter this, I added the minimum(target variable) +1
to the target variable and then did a log transform. This was done on the training data.
The problem with this approach is that in my holdout data, I can have a value that is lower than the minimum value and in that case, I'll be attempting a log transform on negative data which will return an error.
Is there a way I can log transform a continuous dependent variable that may have negative values without having to bother about them?