View source: R/shift-distributions.R
| shift_magnitude_groups | R Documentation |
Wrap named analysis groups so downstream shift-magnitude verbs know to run
once per group rather than pooling every input into one result. Each group
can be a transition table, BMM bifrost_search object, list of runs to pool,
or a precomputed shift-magnitude object accepted by the downstream verb. When
grouped inputs include precomputed shift_magnitude_comparison objects,
compare_shift_magnitudes() requires their stored settings to match the
settings requested for the grouped call.
shift_magnitude_groups(..., .list = NULL, labels = NULL)
... |
Named analysis groups. Use quoted names for labels that are not
syntactic R names, such as |
.list |
Optional named list of analysis groups. Use this when groups are already stored in a list. |
labels |
Optional replacement labels, one per analysis group. Defaults
to names from the supplied groups, falling back to |
A named list of class shift_magnitude_groups.
transitions <- data.frame(
rate_change = c("increase", "increase", "decrease", "decrease"),
rate_delta = c(2, 3, -1, -1.5)
)
groups <- shift_magnitude_groups(
"GIC + BIC" = list(gic = transitions, bic = transitions),
GIC = list(gic = transitions)
)
compare_shift_magnitudes(groups, ks_reps = 99)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.