ewspec | R Documentation |
This function computes the evolutionary wavelet spectrum (EWS) estimate from a time series (or non-decimated wavelet transform of a time series). The estimate is computed by taking the non-decimated wavelet transform of the time series data, taking its modulus; smoothing using TI-wavelet shrinkage and then correction for the redundancy caused by use of the non-decimated wavelet transform. Options below beginning with smooth. are passed directly to the TI-wavelet shrinkage routines.
ewspec(x, filter.number = 10, family = "DaubLeAsymm",
UseLocalSpec = TRUE, DoSWT = TRUE, WPsmooth = TRUE,
verbose = FALSE, smooth.filter.number = 10,
smooth.family = "DaubLeAsymm",
smooth.levels = 3:(nlevelsWT(WPwst) - 1), smooth.dev = madmad,
smooth.policy = "LSuniversal", smooth.value = 0, smooth.by.level = FALSE,
smooth.type = "soft", smooth.verbose = FALSE,
smooth.cvtol = 0.01, smooth.cvnorm = l2norm,
smooth.transform = I, smooth.inverse = I)
x |
The time series that you want to analyze. (See DETAILS below on how to supply preprocessed versions of the time series which bypass early parts of the ewspec function). |
filter.number |
This selects the index of the wavelet used in the analysis of the time series (i.e. the wavelet basis functions used to model the time series). For Daubechies compactly supported wavelets the filter number is the number of vanishing moments. |
family |
This selects the wavelet family to use in the analysis of the time series (i.e. which wavelet family to use to model the time series). Only use the Daubechies compactly supported wavelets |
UseLocalSpec |
If you input a time series for |
DoSWT |
If you input a time series for |
WPsmooth |
Normally a wavelet periodogram is smoothed before it is corrected. Use |
verbose |
If this option is |
smooth.filter.number |
This selects the index number of the wavelet that smooths each scale of the wavelet periodogram. See |
smooth.family |
This selects the wavelet family that smooths each scale of the wavelet periodogram. See |
smooth.levels |
The levels to smooth when performing the TI-wavelet shrinkage smoothing. |
smooth.dev |
The method for estimating the variance of the empirical wavelet coefficients for smoothing purposes. |
smooth.policy |
The recipe for smoothing: determines how the threshold is chosen. See |
smooth.value |
When a manual policy is being used this argument is used to supply a threshold value. See |
smooth.by.level |
If If Note: a |
smooth.type |
The type of shrinkage: either "hard" or "soft". |
smooth.verbose |
If |
smooth.cvtol |
If cross-validated wavelet shrinkage ( |
smooth.cvnorm |
no description for object |
smooth.transform |
The transform function to use to transform the wavelet periodogram estimate. The wavelet periodogram coefficients are typically chi-squared in nature, a |
smooth.inverse |
the inverse transform of |
This function computes an estimate of the evolutionary wavelet spectrum of a time series according to the paper by Nason, von Sachs and Kroisandt. The function works as follows:
The non-decimated wavelet transform of the series is computed.
The squared modulus of the non-decimated wavelet transform is computed (this is the raw wavelet periodogram, which is returned).
The squared modulus is smoothed using TI-wavelet shrinkage.
The smoothed coefficients are corrected using the inverse of the inner product matrix of the discrete non-decimated autocorrelation wavelets (produced using the ipndacw function).
To display the EWS use the plot
function on the S
component, see the examples below.
It is possible to supply the non-decimated wavelet transform of the time series and set DoSWT=F
or to supply the squared modulus of the non-decimated wavelet transform using LocalSpec
and setting UseLocalSpec=F
. This facility saves time because the function is then only used for smoothing and correction.
A list with the following components:
S |
The evolutionary wavelet spectral estimate of the input |
WavPer |
The raw wavelet periodogram of the input |
rm |
This is the matrix A from the paper by Nason, von Sachs and Kroisandt. Its inverse is used to correct the raw wavelet periodogram. This matrix is computed using the |
irm |
The inverse of the matrix A from the paper by Nason, von Sachs and Kroisandt. It is used to correct the raw wavelet periodogram. |
Version 3.9 Copyright Guy Nason 1998
G P Nason
Nason, G.P., von Sachs, R. and Kroisandt, G. (1998). Wavelet processes and adaptive estimation of the evolutionary wavelet spectrum. Technical Report, Department of Mathematics University of Bristol/ Fachbereich Mathematik, Kaiserslautern.
Baby Data
, filter.select
, ipndacw
, LocalSpec
, threshold
wd
wd.object
#
# Apply the EWS estimate function to the baby data
#
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.