powered by
This helper function computes lengths of fine-scale chunks in the hierarchical case.
compute_T_star(horizon, period, dates = NULL, seed = NULL)
An integer vector of fine-scale chunk sizes.
integer
The element controls$horizon, i.e., an integer vector of length 2, where the second entry can be NA_integer_.
controls$horizon
NA_integer_
The element controls$period, i.e. one of "w", "m", "q", or "y".
controls$period
"w"
"m"
"q"
"y"
A character vector of dates of empirical fine-scale data (if any). By default, dates = NULL.
character
dates = NULL
Set a seed for the simulation of flexible chunk lengths. By default, seed = NULL (i.e., no seed).
seed = NULL
if (FALSE) { ### weekly fine-scale chunk sizes for 10 coarse-scale observations horizon <- c(10, NA_integer_) period <- "w" compute_T_star(horizon, period) }
Run the code above in your browser using DataLab