ts.match | R Documentation |
Correlation calculation based on rolling window with overlapping observations.
ts.match(x, y, cutoff = 1)
x |
time series |
y |
subsection of the time series to map |
cutoff |
benchmark value for corr, default 1 |
Pearson's correlation coefficient between x
and y
x <- rnorm(15)
y <- -x[6:10]
x <- c(x, y)
ts.match(x, y, 1)
z <- rnorm(5)
ts.match(x, z)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.