Skip to contents

Get the first date of calibration count data

Usage

get_first_calibration_date(count_data, calibration_time)

Arguments

count_data

dataframe with the input count data. Must contain a column named date.

calibration_time

Maximum number of days of count date to use when fitting the model.

Value

The first calibration date.

Examples


get_first_calibration_date(wwinference::hosp_data, 50)
#> [1] "2023-10-11"

get_first_calibration_date(wwinference::hosp_data, 70)
#> [1] "2023-09-21"