| group_correlation_matrix | R Documentation |
Correlation between every pair of configured groups' series, aligned on
ds (pairwise-complete, so groups that don't share every period still
compare on their overlap).
group_correlation_matrix(grouped_series_list)
grouped_series_list |
A named list of |
A tibble with columns group_a, group_b, correlation –
upper triangle only, no self-pairs, one row per distinct pair. Empty
if fewer than 2 groups are supplied.
ds <- as.Date("2024-01-01") + 0:9
groups <- list(
A = tibble::tibble(ds = ds, y = 1:10),
B = tibble::tibble(ds = ds, y = 10:1)
)
group_correlation_matrix(groups)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.