localH | R Documentation |
Estimates the local Hurst exponent based on Ihlen and Vereijken (2014). This measures the current, temporal degree of persistence. A value larger 0.5 means positive auto-correlation and below 0.5 describes negative auto-correlation.
localH(x, mdl, scale=5:21, m=1, align="center")
x |
a numeric vector containing the values of the time-series. |
mdl |
an object of class |
scale |
an integer vector containing the time scales. These should be small to capture local correlation behavior, i.e. the current degree of persistence. |
m |
an integer representing the polynomial order of detrending, |
align |
specifies the alignment within the estimation windows. Possible values are 'center', 'left' or 'right'. |
The intertemporal persistence is estimated from the interpolating routine of Ihlen and Vereijken (2014). The multifractal model should be estimated in a first step using mfdfa
.
Returns a two-column matrix of local Hurst exponent and related interquartile range.
Wolfgang Schadner
Ihlen E. A. F., & Vereijken B. (2014). Detection of co-regulation of local structure and magnitude of stride time variability using a new local detrended fluctuation analysis. Gait Posture, 39(1), p.466-471.
mfdfa
n <- 1024 # random t-distributed variable: x <- rt(n, 3) mdl <- mfdfa(x, overlap=T) Ht <- localH(mdl) plot(Ht)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.