vse {vse4ts} | R Documentation |
Calculate the Variance Scale Exponent of a Time Series
Description
Calculate the variance scale exponent of a time series.
Usage
vse(x, m = 0.5, n = NULL, type = c("weak", "strong"))
Arguments
x |
A time series vector. |
m |
A parameter to control the number of scales. Default is 0.5. |
n |
The number of scales. If |
type |
The type of variance scale exponent. Default is "weak". |
Value
The variance scale exponent.
References
Fu, H., Chen, W., & He, X.-J. (2018). On a class of estimation and test for long memory. In Physica A: Statistical Mechanics and its Applications (Vol. 509, pp. 906–920). Elsevier BV. https://doi.org/10.1016/j.physa.2018.06.092
Examples
## Compute the variance scale exponent of a time series
# Generate a random time series
set.seed(123)
x <- rnorm(1024) # F = H = 0.5 also d = 0
vse(x)
## Compare the result with the Hurst exponent
library(pracma)
# A time series with Hurst exponent 0.72
data("brown72")
x <- brown72 # F = H = 0.72 also d = 0.22
hurstexp(x)
vse(x)
# A time series with Hurst exponent 0.43
xlm <- numeric(1024); xlm[1] <- 0.1
for (i in 2:1024) xlm[i] <- 4 * xlm[i-1] * (1 - xlm[i-1])
x <- xlm # F = H = 0.43 also d = -0.07
hurstexp(x)
vse(x)
[Package vse4ts version 1.0.0 Index]