WaveletCoherency
and WaveletTransform
subject to criteria concerning the time and frequency resolution, an (optional) lower and/or upper Fourier period,
and a variety of filtering methods for the coherence computation.
It performs a simulation algorithm to test against a specified alternative hypothesis, which can be chosen from a variety of options,
and provides p-values. The selected model will be fitted to the data and simulated according to estimated parameters in order to provide surrogate time series.
This function is called by function analyze.coherency
.The name and parts of the layout were inspired by a similar function developed by
Huidong Tian and Bernard Cazelles (archived R package WaveletCo
).
The major part of the code for the computation of the cone of influence, and the code for Fourier-randomized surrogate time series have been adopted from Huidong Tian.
The implementation of a choice of filtering windows for the computation of
the wavelet coherence was inspired by Luis Aguiar-Conraria and Maria Joana Soares (GWPackage
).
wc(x, y, start = 1, dt = 1, dj = 1/20,
lowerPeriod = 2*dt, upperPeriod = floor(length(x)/3)*dt,
window.type.t = 1, window.type.s = 1,
window.size.t = 5, window.size.s = 1/4,
make.pval = T, method = "white.noise", params = NULL,
n.sim = 100, save.sim = F)
Aguiar-Conraria L., and Soares M.J., 2011. The Continuous Wavelet Transform: A Primer. NIPE Working Paper Series 16/2011.
Aguiar-Conraria L., and Soares M.J., 2012. GWPackage
. Available at
Cazelles B., Chavez M., Berteaux, D., Menard F., Vik J.O., Jenouvrier S., and Stenseth N.C., 2008. Wavelet analysis of ecological time series. Oecologia 156, 287--304.
Liu P.C., 1994. Wavelet spectrum analysis and ocean wind waves. In: Foufoula-Georgiou E., and Kumar P., (eds.), Wavelets in Geophysics, Academic Press, San Diego, 151--166.
Tian, H., and Cazelles, B., 2012. WaveletCo
. Available at
Torrence C., and Compo G.P., 1998. A practical guide to wavelet analysis. Bulletin of the American Meteorological Society 79 (1), 61--78.
Veleda D., Montagne R., and Araujo M., 2012. Cross-Wavelet Bias Corrected by Normalizing Scales. Journal of Atmospheric and Oceanic Technology 29, 1401--1408.