Description Usage Arguments Value Examples
View source: R/create_hts_data.R
Create data to be used when fitting a model with fit_hts
1  | create_hts_data(.data, formula)
 | 
.data | 
 tsibble  | 
formula | 
 formula with hts() term  | 
data.frame
1 2 3 4 5  | data_w_groups <- create_hts_data(
  .data = malaria_africa_ts,
  formula = pr ~ avg_lower_age + hts(who_subregion, country)
  )
data_w_groups
 | 
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.