View source: R/sdPercentiles.R
sdPercentiles | R Documentation |
Implements the approach of Gershunov et al. (2001) to test the significance of signal from rolling correlation analysis.
sdPercentiles(n = 150, cor = 0.5, width = 5, N = 500,
percentiles = c(.05, .95))
n |
The length of the series in the rolling correlation analysis. |
cor |
The magnitude of raw correaltion betweeen two time series in the rolling correlation analysis. |
width |
Window length of the rolling correlation analysis. |
N |
Number of Monte Carlo replications for simulations. |
percentiles |
Percentiles to be reported for the Monte Carlo distribution of standard deviations of rolling correlations for the given window width. |
N
samples of correlated white noise series are generated with a magnitude of cor
; rolling correlations analysis is applied with the window length of width
; Monte Carlo distribution of standard deviations of rolling correlations are generated; and desired percentiles
of the MC distribution of standard deviations are reported (Gershunov et al. 2001).
rollCorSd.limits |
Percentiles of MC distribution of standard deviations of rolling correlations as the test limits. |
Haydar Demirhan
Maintainer: Haydar Demirhan <haydar.demirhan@rmit.edu.au>
Gershunov, A., Scheider, N., Barnett, T. (2001). Low-Frequency Modulation of the ENSO-Indian Monsoon Rainfall Relationship: Signal or Noise? Journal of Climate, 14, 2486 - 2492.
# sdPercentiles(n = 50, cor = 0.5, width = 5, N = 50,
# percentiles = c(.025, .975))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.