Skip to contents

This function checks the input events.

Usage

fHMM_events(events)

Arguments

events

A list of two elements. The first element is named "dates" and contains characters in format "YYYY-MM-DD". The second element is named "labels" and is a character vector of the same length as "dates".

Value

An object of class fHMM_events.

Examples

events <- list(
  dates = c("2001-09-11", "2008-09-15", "2020-01-27"),
  labels = c(
    "9/11 terrorist attack", "Bankruptcy Lehman Brothers",
    "First COVID-19 case Germany"
  )
)
events <- fHMM_events(events)