powered by
Takes the d-th difference of the series.
fdiff(x, d)
series to be differenced
memory parameter indicating order of the fractional difference.
This code was first published on the university webpage of Morten Nielsen and is redistributed here with the author's permission.
Jensen, A. N. and Nielsen, M. O. (2014): A fast fractional difference algorithm, Journal of Time Series Analysis 35(5), pp. 428-436.
# NOT RUN { acf(fdiff(x=rnorm(500), d=0.4)) # }
Run the code above in your browser using DataLab