Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

diffseries

Fractionally Differenciate Data


Description

Differenciates the time series data using the approximated binomial expression of the long-memory filter and an estimate of the memory parameter in the ARFIMA(p,d,q) model.

Usage

diffseries(x, d)

Arguments

x

numeric vector or univariate time series.

d

number specifiying the fractional difference order.

Details

Since 2018, we are using (an important correction of) the fast algorithm based on the discrete Fourier transform (fft) by Jensen and Nielsen which is significantly faster for large n = length(x).

Value

the fractionally differenced series x.

Author(s)

Valderio A. Reisen valderio@cce.ufes.br and Artur J. Lemonte (first slow version), now hidden as diffseries.0().

Current version: Jensen and Nielsen (2014); tweaks by Martin Maechler, 2018.

References

See those in fdSperio; additionally

Reisen, V. A. and Lopes, S. (1999) Some simulations and applications of forecasting long-memory time series models; Journal of Statistical Planning and Inference 80, 269–287.

Reisen, V. A. Cribari-Neto, F. and Jensen, M.J. (2003) Long Memory Inflationary Dynamics. The case of Brazil. Studies in Nonlinear Dynamics and Econometrics 7(3), 1–16.

Jensen, Andreas Noack and Nielsen, Morten Ørregaard (2014) A Fast Fractional Difference Algorithm. Journal of Time Series Analysis 35(5), 428–436; doi: 10.1111/jtsa.12074.

See Also

Examples

memory.long <- fracdiff.sim(80, d = 0.3)
str(mGPH <- fdGPH(memory.long$series))
r <- diffseries(memory.long$series, d = mGPH$d)
#acf(r) # shouldn't show structure - ideally

fracdiff

Fractionally Differenced ARIMA aka ARFIMA(P,d,q) Models

v1.5-1
GPL (>= 2)
Authors
Martin Maechler [aut, cre] (<https://orcid.org/0000-0002-8685-9910>), Chris Fraley [ctb, cph] (S original; Fortran code), Friedrich Leisch [ctb] (R port, <https://orcid.org/0000-0001-7278-1983>), Valderio Reisen [ctb] (fdGPH() & fdSperio()), Artur Lemonte [ctb] (fdGPH() & fdSperio()), Rob Hyndman [ctb] (residuals() & fitted(), <https://orcid.org/0000-0002-2140-5352>)
Initial release
2020-01-20

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.