Learn R Programming

fHMM (version 1.4.2)

compute_T_star: Compute lengths of fine-scale chunks

Description

This helper function computes lengths of fine-scale chunks in the hierarchical case.

Usage

compute_T_star(horizon, period, dates = NULL, seed = NULL)

Value

An integer vector of fine-scale chunk sizes.

Arguments

horizon

The element controls$horizon, i.e., an integer vector of length 2, where the second entry can be NA_integer_.

period

The element controls$period, i.e. one of "w", "m", "q", or "y".

dates

A character vector of dates of empirical fine-scale data (if any). By default, dates = NULL.

seed

Set a seed for the simulation of flexible chunk lengths. By default, seed = NULL (i.e., no seed).