The output is further processed by the higher-order function wc
and can be retrieved from analyze.coherency
.
The name and layout were inspired by a similar function developed by Huidong Tian and Bernard Cazelles (archived R package WaveletCo
).
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
).
WaveletCoherency(x, y, dt = 1, dj = 1/20, lowerPeriod = 2*dt, upperPeriod = floor(length(x)*dt/3), window.type.t = 1, window.type.s = 1, window.size.t = 5, window.size.s = 1/4)
0 | ("none") | : | |
no smoothing in time direction | 1 | ("bar") | |
: | Bartlett | 2 | |
("tri") | : | Triangular (Non-Bartlett) | |
3 | ("box") | : | Boxcar (Rectangular, Dirichlet) |
4 | ("han") | : | |
Hanning | 5 | ("ham") | |
: | Hamming | 0 |
0 | ("none") | : | |
no smoothing in scale (period) direction | 1 | ("bar") | |
: | Bartlett | 2 | |
("tri") | : | Triangular (Non-Bartlett) | |
3 | ("box") | : | Boxcar (Rectangular, Dirichlet) |
4 | ("han") | : | |
Hanning | 5 | ("ham") | |
: | Hamming | 0 |
Aguiar-Conraria L., and Soares M.J., 2011. Business cycle synchronization and the Euro: A wavelet analysis. Journal of Macroeconomics 33 (3), 477--489.
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 http://sites.google.com/site/aguiarconraria/joanasoares-wavelets; accessed September 4, 2013.
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 http://cran.r-project.org/src/contrib/Archive/WaveletCo/, archived April 2013; accessed July 26, 2013.
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.
WaveletTransform
, wc
, analyze.coherency