get_use_dates: Get dates for which to use (trust) inferred daily reports

View source: R/get_use_dates.R

get_use_datesR Documentation

Get dates for which to use (trust) inferred daily reports

Description

Get dates for which to use (trust) inferred daily reports

Usage

get_use_dates(cl.daily, cl.data, prm.daily.check, dates.only = TRUE)

Arguments

cl.daily

Data frame. Output of agg_to_daily().

cl.data

Data frame. Must have variables:

  • date: calendar date of report

  • value: count of reported cases

prm.daily.check

List. Parameters for checking aggregated to daily report inference. Elements include:

  • agg.reldiff.tol: numerical tolerance (%) for relative error between aggregated inferred daily reports and original aggregated reports; chronological observations are dropped until this tolerance is first acheived (convergence at the start of the timeseries is often the worst, need to maintain uninterrupted daily timeseries for input into Rt calculation).

Set this entire argument to NULL to use inferred daily reports as is.

dates.only

Logical. Return use dates only or all columns of cl.daily.

Value

Data frame or vector, depending on dates.only


ern documentation built on April 4, 2025, 2:13 a.m.