Skip to contents

Function to put the data into the format proper to the nowcasting estimation, has to use the maximum of data present on the last week parsed to the estimation. Makes the account of maximum days per week to be used. With no age structure.

Usage

data.w_no_age(dataset, trim.data, date_onset, date_report, K = 0, silent = F)

Arguments

dataset

dataset to be formatted as data by week

trim.data

How much to trim of the data?

date_onset

Column of dates of onset of the events, normally date of onset of first symptoms of cases

date_report

Column of dates of report of the event, normally date of digitation of the notification of cases

K

How much weeks to forecast ahead? Default K is 0, no forecasting ahead

Value

Data in weeks format, with the maximum dates for the last week used

Examples