This is a repository that contains the copycat forecast model
- Clone the
copycatrepository onto your local machine (I have it in a folder calledprojects/) - Fork the
flu-metrocastgithub repository (https://github.com/reichlab/flu-metrocast) and clone the forked repo to your local machine in the same folder as you putcopycat - Navigate to
flu-metrocast/locally in a terminal and create a new branch (mine is calledcc_branch):git checkout -b cc_branchgit remote add upstream https://github.com/reichlab/flu-metrocast
- Each forecast week on Wednesday do the following:
- Navigate to the
flu-metrocastgithub repository locally in your terminal - Run
git pull upstream main - Open the
copycat.Rproj - Run
city-influenza-weekly-forecasts.R - Look at the figures produced in
figures/city-rt/, spot check the image produced this week and share it in slack - Check the
hubvalidationsoutput from the script to make sure it worked. - If something is off, you may need to fiddle with the parameters on the
city_copycat()function call on lines 106-112. - Once forecasts are approved, run the following code in terminal from the
flu-metrocast/folder (changing the dates/filenames as needed):
git add model-output/epiENGAGE-Copycat/2025-12-13-epiENGAGE-Copycat.csv git commit -m "CC submission Dec 10" git push -u origin cc_branch- Then go to: https://github.com/reichlab/flu-metrocast, and there should be a green button for submitting a pull request. Click that button and submit it. Make sure to wait on the webpage to make sure all of the validation checks pass before closing the window.
- Congratulations on submitting a weekly forecast for the metrocast hub!
- Navigate to the
Feel free to reach out if you have any questions or issues. Spencer J. Fox spencer.fox@nau.edu