Wavemulcor: Wavelet Routines for Global and Local Multiple

Wavemulcor: Wavelet Routines for Global and Local Multiple

Package ‘wavemulcor’ September 3, 2021 Type Package Title Wavelet Routines for Global and Local Multiple Regression and Correlation Version 3.1.2 Description Wavelet routines that calculate single sets of wavelet multiple regressions and correlations, and cross-regressions and cross-correlations from a multivariate time series. Dynamic versions of the routines allow the wavelet local multiple (cross-)regressions and (cross-)correlations to evolve over time. License GPL-3 Depends R (>= 3.4.0), waveslim (>= 1.7.5) Imports plot3D, RColorBrewer Suggests covr, knitr, markdown, rmarkdown, testthat VignetteBuilder knitr Encoding UTF-8 LazyData true RoxygenNote 7.1.1 NeedsCompilation no Author Javier Fernandez-Macho [aut, cre] (<https://orcid.org/0000-0002-5970-4382>) Maintainer Javier Fernandez-Macho <[email protected]> Repository CRAN Date/Publication 2021-09-03 12:40:02 UTC R topics documented: wavemulcor-package . .2 heatmap_wave.local.multiple.correlation . .3 heatmap_wave.local.multiple.cross.correlation . .4 heatmap_wave.multiple.cross.correlation . .5 1 2 wavemulcor-package local.multiple.correlation . .6 local.multiple.cross.correlation . .9 local.multiple.cross.regression . 11 local.multiple.regression . 14 plot_local.multiple.correlation . 16 plot_local.multiple.cross.correlation . 17 plot_local.multiple.cross.regression . 18 plot_local.multiple.regression . 19 plot_wave.local.multiple.correlation . 20 plot_wave.local.multiple.cross.correlation . 21 plot_wave.local.multiple.cross.regression . 22 plot_wave.local.multiple.regression . 23 plot_wave.multiple.correlation . 24 plot_wave.multiple.cross.correlation . 25 plot_wave.multiple.cross.regression . 26 plot_wave.multiple.regression . 27 wave.local.multiple.correlation . 28 wave.local.multiple.cross.correlation . 31 wave.local.multiple.cross.regression . 33 wave.local.multiple.regression . 36 wave.multiple.correlation . 39 wave.multiple.cross.correlation . 41 wave.multiple.cross.regression . 43 wave.multiple.regression . 46 xrand . 48 xrand1 . 49 xrand2 . 50 Index 51 wavemulcor-package Wavelet Routines for Global and Local Multiple Regression and Cor- relation Description Wavelet routines that calculate single sets of wavelet multiple regressions and correlations, and cross-regressions and cross-correlations from a multivariate time series. Dynamic versions of the routines allow the wavelet local multiple (cross-)regressions and (cross-)correlations to evolve over time. Details Wavelet routines that calculate single sets of wavelet multiple regressions and correlations (WMR and WMC), and cross-regressions and cross-correlations (WMCR and WMCC) from a multivariate time series. Dynamic versions of the routines allow the wavelet local multiple (cross-)regressions (WLMR and WLMCR) and (cross-)correlations (WLMC and WLMCC) to evolve over time. The output from these Wavelet statistics can later be plotted in single graphs, as an alternative to trying heatmap_wave.local.multiple.correlation 3 to make sense out of several sets of wavelet correlations or wavelet cross-correlations. The code is based on the calculation, at each wavelet scale, of the square root of the coefficient of determination in a linear combination of variables for which such coefficient of determination is a maximum. The code provided here is based on the wave.correlation routine in Brandon Whitcher’s waveslim R package Version: 1.6.4, which in turn is based on wavelet methodology developed in Percival and Walden (2000), Gençay, Selçuk and Whitcher (2002) and others. Version 2 incorporates wavelet local multiple correlations (WLMC). These are like the previous global WMC but consisting in one single set of multiscale correlations along time. That is, at each time t, they are calculated by letting a window of weighted wavelet coefficients around t move along time. Six weight functions are provided. Namely, the uniform window, Cleveland’s tricube window, Epanechnikov’s parabolic window, Bartlett’s triangular window and Wendland’s truncated power window and the Gaussian window. Version 2.2 incorporates auxiliary functions that calculate local multiple correlations and cross-correlations (LMC, LMCC). They are calculated by letting move along time a window of weighted time series values around t. Any of the six weight functions mentioned above can be used. They also feed a new routine to compute wavelet local multiple cross-correlation (WLMCC). Version 3 extends all the previous correlation routines (WMC, WMCC, LMC, WLMC, WLMCC) to handle wavelet regressions (WMR, WMCR, LMR, WLMR, WLMCR) that provide regression coefficients and statistics across wavelet scales. Auxiliary plot_ and heatmap_ routines are also provided to visualize the wavmulcor statistics. Author(s) Javier Fernández-Macho, Dpt. of Quantitative Methods, University of the Basque Country, Agirre Lehendakari etorb. 83, E48015 BILBAO, Spain. (email: javier.fernandezmacho at ehu.eus). References Fernández-Macho, J., 2012. Wavelet multiple correlation and cross-correlation: A multiscale anal- ysis of Eurozone stock markets. Physica A: Statistical Mechanics and its Applications 391, 1097– 1104. <DOI:10.1016/j.physa.2011.11.002> Fernández-Macho, J., 2018. Time-localized wavelet multiple regression and correlation, Physica A: Statistical Mechanics, vol. 490, p. 1226–1238. <DOI:10.1016/j.physa.2017.11.050> heatmap_wave.local.multiple.correlation Auxiliary routine for heatmaping wave local multiple correlations Description Produces a heatmap of wave local multiple correlations. Usage heatmap_wave.local.multiple.correlation(Lst, xaxt="s", ci=NULL, pdf.write=NULL) 4 heatmap_wave.local.multiple.cross.correlation Arguments Lst A list from wave.local.multiple.regression. xaxt An optional vector of labels for the "x" axis. Default is 1:n. ci value to plot: "center" value of confidence interval (i.e. the estimated correla- tion), the "lower" bound, or the "upper" bound. Default is "center". pdf.write Optional name leader to save files to pdf format. The actual name of the file is "heat_<pdf.write>_WLMC.pdf". Details The routine produces a time series vs. wavelet periods heatmap of wave local multiple correlations. Value Heat map. Author(s) Javier Fernández-Macho, Dpt. of Quantitative Methods, University of the Basque Country, Agirre Lehendakari etorb. 83, E48015 BILBAO, Spain. (email: javier.fernandezmacho at ehu.eus). References Fernández-Macho, J., 2018. Time-localized wavelet multiple regression and correlation, Physica A: Statistical Mechanics, vol. 490, p. 1226–1238. <DOI:10.1016/j.physa.2017.11.050> heatmap_wave.local.multiple.cross.correlation Auxiliary routine for heatmaping wave local multiple cross- correlations Description Produces heatmaps of wave local multiple cross-correlations. Usage heatmap_wave.local.multiple.cross.correlation(Lst, lmax, lag.first=FALSE, xaxt="s", ci=NULL, pdf.write=NULL) heatmap_wave.multiple.cross.correlation 5 Arguments Lst A list from wave.local.multiple.cross.regression. lmax maximum lag (and lead). lag.first if TRUE, it produces lag-lead pages with J + 1 wavelet heatmaps each. Oth- erwise (default) it gives wavelet pages with 2 ∗ lmax + 1 lag-lead heatmaps each. xaxt An optional vector of labels for the "x" axis. Default is 1:n. ci value to plot: "center" value of confidence interval (i.e. the estimated cross- correlation), the "lower" bound, or the "upper" bound. Default is "center". pdf.write Optional name leader to save files to pdf format. The actual name of the file is ei- ther "heat_<pdf.write>_WLMCC_lags.pdf" or, "heat_<pdf.write>_WLMCC_levels.pdf". Details The routine produces a set of time series vs. wavelet periods heatmaps of wave local multiple cross-correlations at different lags and leads. Value Heat map. Author(s) Javier Fernández-Macho, Dpt. of Quantitative Methods, University of the Basque Country, Agirre Lehendakari etorb. 83, E48015 BILBAO, Spain. (email: javier.fernandezmacho at ehu.eus). References Fernández-Macho, J., 2018. Time-localized wavelet multiple regression and correlation, Physica A: Statistical Mechanics, vol. 490, p. 1226–1238. <DOI:10.1016/j.physa.2017.11.050> heatmap_wave.multiple.cross.correlation Auxiliary routine for heatmaping wave multiple cross-correlations Description Produces heatmaps of wave multiple cross-correlations. Usage heatmap_wave.multiple.cross.correlation(Lst, lmax, by=3, ci=NULL, pdf.write=NULL) 6 local.multiple.correlation Arguments Lst A list from wave.multiple.cross.regression or wave.multiple.cross.correlation. lmax maximum lag (and lead). by labels are printed every lmax/by. Default is 3. ci value to plot: "center" value of confidence interval (i.e. the estimated cross- correlation), the "lower" bound, or the "upper" bound. Default is "center". pdf.write Optional name leader to save files to pdf format. The actual name of the file is ei- ther "heat_<pdf.write>_WLMCC_lags.pdf" or, "heat_<pdf.write>_WLMCC_levels.pdf". Details The routine produces a set of time series vs. wavelet periods heatmaps of wave local multiple cross-correlations at different lags and leads. Value Heat map. Author(s) Javier Fernández-Macho, Dpt. of Quantitative Methods, University of the Basque Country, Agirre Lehendakari etorb. 83, E48015 BILBAO, Spain. (email: javier.fernandezmacho at ehu.eus). References Fernández-Macho, J., 2012. Wavelet multiple correlation and cross-correlation: A multiscale anal- ysis of Eurozone stock markets. Physica A: Statistical Mechanics and its Applications 391, 1097– 1104. <DOI:10.1016/j.physa.2011.11.002> local.multiple.correlation Routine for local multiple

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    55 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us