2
$\begingroup$

I am on my early stages of learning detrending. In R, when I see a linear trend, I use diff() function. Which, if I had the time series in a sheet of paper, I see it like "flipping the paper".

I checked ?diff hoping for a parameter, but there isn't one... is there an R function to achieve detrending for an exponential trend?

$\endgroup$

1 Answer 1

1
$\begingroup$

For an exponential trend, you usually want to take a logarithm to make it an additive trend, and then apply diff, so you should be able to just use diff(log(

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.