powered by
This function generates Detrending moving-average cross-correlation coefficient of two time series with sliding windows approach.
dmca.SlidingWindows(x, y, w = 98, k = 10)
A vector containing univariate time series.
An integer value indicating the window size \(w < length(y)\). If \(w = length(y)\), will be computed the function will not slide.
An integer value indicating the boundary of the division \((N/k)\). The smallest value of \(k\) is \(4\).
A list containing "w", "timescale", "dmca".
This function include following measures: w, timescale, dmca
KRISTOUFEK, L. Detrending moving-average cross-correlation coefficient: Measuring cross-correlations between non-stationary series. PHYSICA A, v.406, p.169-175, 2014. doi="doi.org/10.1016/j.physa.2014.03.015".
# NOT RUN { x <- rnorm(100) y <- rnorm(100) dmca.SlidingWindows(x,y,w=99,k=10) # }
Run the code above in your browser using DataLab