Baseline model - reichlab/covid19-forecast-hub GitHub Wiki
The baseline model, adapted from a proposal by Ryan Tibshirani, forecasts constant median incidence with a distribution around the median derived from past first differences in incidence. Forecasts of cumulative counts are derived from forecasts of incident counts. A more detailed description is given in the metadata file.
Software Dependencies
You will need Python 3 and R 3.x or 4.x, as well as the packages listed below:
Python packages:
pandasandrequests. To install, run the following in a terminal:
pip install pandas
pip install requests
R packages:
-
The
quantgenpackage by Ryan Tibshirani. Follow the instructions at https://github.com/ryantibs/quantgen. -
Other packages:
tidyverse, MMWRweek, magrittr, here. In an R session, run the following:
install.packages(c("tidyverse", "MMWRweek", "magrittr", "here"))
- The
covidModelspackage. Clone the repository and install as an R package. In a terminal, you can run the following commands:
git clone https://github.com/reichlab/covidModels
cd covidModels
R CMD INSTALL R-package
- The
covidDatapackage. Clone the repository. You don't need to install it as an R package immediately; this will be done as part of the automated ensemble build process.
git clone https://github.com/reichlab/covidData
Weekly baseline model build
The following instructions can be used to build the COVID-19 Forecast Hub baseline model.
- In a terminal window, navigate to
covidModels/weekly-submission/and run themake allcommand. - Copy the submission files to a branch or fork of the
covid19-forecast-hubrepository, commit, push, and submit a pull request.