Description Usage Arguments Examples
View source: R/rank_harmonies.R
rank harmonies with significant patterns
1 2 3 4 5 6 7 8 9 10 |
.data |
a tsibble or data with already computed categories |
harmony_tbl |
A tibble containing one or more hamronies with facet_variable, x_variable, facet_levels and x_levels |
response |
the response variable |
quantile_prob |
numeric vector of probabilities with value #'in [0,1] whose sample quantiles are wanted. Default is set to #' "decile" plot |
dist_ordered |
if categories are ordered |
lambda |
value of tuning parameter for computing weighted pairwise distances |
nperm |
number of permutations for normalization |
use_perm |
should permutation approach for normalization be used |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | library(gravitas)
library(parallel)
library(dplyr)
library(tidyr)
sm <- smart_meter10 %>%
filter(customer_id %in% c("10017936"))
harmonies <- sm %>%
harmony(
ugran = "month",
filter_in = "wknd_wday",
filter_out = c("hhour", "fortnight")
)
all_harmony <- rank_harmonies(sm,
harmony_tbl = harmonies,
response = general_supply_kwh
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.