Learn R Programming

SpuriousMemory

Test for the null hypothesis of fractional integration against spurious long memory

Overview

Detecting spurious long memory in time series using the method of Qu (2011). Distinguishes between true stationary long memory and spurious long memory caused by level shifts or smooth trends.

Example

library(SpuriousMemory)

# Data
data(RV5min)

result <- Longmemorytest(RV5min, demean = TRUE, alpha = 0.05)

References

  • Qu, Z. (2011). "Test Against Spurious Long Memory". Journal of Business & Economic Statistics, 29(3), 423-438.

Copy Link

Version

Install

install.packages('SpuriousMemory')

Version

1.0.0

License

GPL (>= 3)

Maintainer

Zhongjun Qu

Last Published

December 1st, 2025

Functions in SpuriousMemory (1.0.0)

filterx

Filter a time series to reduce the short-memory dynamics using a low-order ARFIMA model
Longmemorytest

Testing true long memory against spurious long memory
RV5min

RV5min: realized volatility for Japanese Yen/USD spot exchange rates from Dec 1st, 1986 to Jun 30th, 1999