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.
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