This is the repository for the code and data associated with the paper entitled: "An Application of Nowcasting Methods: Cases of Norovirus during the Winter 2023/2024 in England".
There are two key points to consider when exploring this repository:
- the data shown are partially synthetic, based on the true data with added statistical noise. This is done to help protect individual data, and is a requirement for us to open source UKHSA data appropriately. Data processing for individual line list data have not been included in this repository.
- some nowcasting models are highly computationally expensive. This research was developed in a high compute environment, therefore decisions around parallelisation, may not be appropriate for your computing system. Please run models with caution and once you are comfortable with the relevant packages involved.
depends.R
- all package dependencies
Files in this director have been removed as a condition for open sourcing.
figure1.R
- generates descriptive time series plotsfigure2.R
- generates plots on reporting delays111_online.R
- generates time series of 111 data.
run_gam.R
- runs the GAM nowcast and saves locallynorovirus_nowcast_config.yaml
- config and model parameters (currently used only for GAM model)run_bsts_model.R
- runs the BSTS model and saves locallyrun_bsts_111_online_model.R
- runs the BSTS model using NHS 111 online data and saves locallyrun_epinowcast.R
- runs the epinowcast model and saves locally
gam_variations.R
- run and score different variations on the GAM norovirus nowcast111_online_collinearity_analysis.R
- check the correlation of 111 online variablestune_*.R
- run the tuning scripts for each model
gam.R
- function for running GAM modelmodel_running_functions.R
- assorted functions needed for running modelsplotting.R
- plotting functionsscoring.R
- scoring functionsepinowcast.R
function for running epinowcast model
plot_and_score_all_models.R
- loads in prediction dataframes from all models and scores and plots them togetherplot_tuning_scores.R
- produce scoring tables
Contains the 111 and cases data used in this research.
Outputs relating to model tuning are stored here.
Visualisations for the paper are stored here.
Outputs relating to model scoring are stored here.