Description Usage Arguments Value References See Also Examples
Function to estimate the Hurst parameter H of a time series by linear regression of the log(spectrum) versus log(frequency) with frequency points accumulated into boxes of equal width on a logarithmic scale and spectrum values averaged over each box.
Given an estimate of the SDF for the input time series, this function estimates the Hurst coefficient
of the time series by performing a linear regression of log(SDF)
versus log(frequency). The range of frequencies to be included in the
regression is specified by the dc
and freq.max
input arguments.
Given an estimate of the SDF for the input time series,
this function estimates the Hurst coefficient
of the time series by performing a linear regression of log(SDF)
versus log(frequency). The range of frequencies to be included in the
regression is specified by the dc
and freq.max
input arguments.
Frequencies are partitioned into blocks of equal width on a logarithmic
scale and the SDF is averaged over each block. The number of blocks
is controlled by the n.block
argument.
Estimates the Hurst coefficient by Robinson's SDF integration method.
Given an estimate of the SDF for the input time series, this function estimates the Hurst coefficient
of a time series by applying Robinson's integral method (typically) to the low-
frequency end of the SDF. Use the freq.max
argument to define the low-frequency
cutoff.
1 2 |
x |
a vector containing a uniformly-sampled real-valued time series. |
... |
optional SDF estimation arguments passed directly to the |
dc |
a logical value. If |
fit |
a function representing the linear regression scheme to use in fitting
the resulting statistics (on a log-log scale). Supported functions are: |
freq.max |
the largerst normalized frequency to include in the regression scheme.
Default: |
method |
a character string indicating the method to be used in estimating the Hurst coefficient (H). Choices are:
Default: |
n.block |
an integer denoting the number of logarithmic frequency divisions to use
in partitioning the estimated SDF. This input argument is only used if |
sdf.method |
a character string denoting the method to use in estimating the SDF.
Choices are |
weight |
a function with a single required variable ( |
an object of class fractalBlock
.
P.M. Robinson (1994), Semiparametric analysis of long-memory time series, Annals of Statistics, 22, 515–539.
I. Lobato and P.M. Robinson (1996), Averaged periodogram estimation of long memory, Journal of Econometrics, 73, 303–324.
J. Geweke and Susan Porter-Hudak (1983), The Estimation and Application of Long Memory Time Series Models, Journal of Time Series Analysis, 4, 221–237.
Murad S. Taqqu, Vadim Teverovsky, and Walter Willinger (1995), Estimators for Long-Range Dependence: An Empirical Study, Fractals, 3, 785–798.
hurstBlock
, fractalBlock
, HDEst
, lm
.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | ## create test series
set.seed(100)
x <- rnorm(1024)
walk <- cumsum(x)
## calculate the Hurst coefficient of a random
## walk series using various techniques. use a
## multitaper SDF
methods <- c("standard","smoothed")
z <- lapply(methods, function(method, walk){
hurstSpec(walk, method=method, sdf.method="multitaper")
},walk=walk )
names(z) <- methods
## plot results
old.plt <- par("plt")
for (i in 1:2){
splitplot(2,1,i)
plot(z[[i]])
}
par(plt=old.plt)
## Robinson's method
hurstSpec(walk, method="robinson", sdf.method="multitaper")
|
Loading required package: splus2R
Loading required package: ifultools
Hurst coefficient via regression of nonparametric sdf estimate for walk
-----------------------------------------------------------------------
H estimate : 0.9999845
Domain : Frequency
Statistic : Robinson Integration
Length of series : 1024
Spectral Density Function estimation for walk
---------------------------------------------
Length of series : 1024
Sampling interval : 1
Frequency resolution (Hz) : 0.0009765625
Centered : TRUE
Recentered : FALSE
Single-sided : TRUE
Method : Multitaper
Number of tapers : 5
Taper: sine
Number of points: 1024
Number of tapers: 5
Normalized: TRUE
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.