Skip to contents

Assert that R(t) specified for generating simulated data is of sufficient length

Usage

assert_rt_correct_length(
  r_in_weeks,
  ot,
  nt,
  forecast_horizon,
  call = rlang::caller_env()
)

Arguments

r_in_weeks

a vector indicating the R(t) in weeks

ot

integer indicating the observed time: length of hospital admissions calibration time in days

nt

integer indicating the nowcast time: length of time between last hospital admissions date and forecast date in days

forecast_horizon

integer indicating the duration of the forecast in days e.g. 28 days

call

Calling environment to be passed to cli::cli_abort() for traceback.

Value

NULL, invisible