Implements a test for distinguishing between true long memory
and spurious long memory. Reference: Qu, Z. (2011). "A Test Against
Spurious Long Memory." Journal of Business & Economic Statistics,
29(3), 423–438.
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.
library(SpuriousMemory)
# Data
data(RV5min)
result <- Longmemorytest(RV5min, demean = TRUE, alpha = 0.05)