## load data on COVID-19 daily incidence up to 2022-05-05 for France,
## and Germany (taken from the official government data) and for UK and
## the USA taken from reference [3]
data(incidence)
## load of the database of restored incidence curves.
data("restored_incidence_database")
## EpiInvert execution for USA with no festive days specification
## using the incidence 90 days in the past
res <- EpiInvert(incidence$USA,
"2022-05-05",
"1000-01-01",
select_params(list(max_time_interval = 90))
)
## EpiInvertForecast execution using the EpiInvert results obtained by USA
forecast <- EpiInvertForecast(res,restored_incidence_database)
Run the code above in your browser using DataLab