Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Latest commit

 

History

History
30 lines (24 loc) · 2.42 KB

README.md

File metadata and controls

30 lines (24 loc) · 2.42 KB

massachusetts-honeymoon

Supporting material for the 2018 Science Translational Medicine paper, "The impact of past vaccination coverage and immunity on pertussis resurgence", by M. Domenech de Cellès, F. M. G. Magpantay, A. A. King, and P. Rohani.

This repository contains saved the R objects (.rds) and R scripts (.R) needed to run the estimations for the deterministic and stochastic models. Download and unpack all the files first. Next, run the script install_packages.R; it installs the "checkpoint" package (if needed) and the other required packages at their version on 1 October 2015. (In particular, this ensures that the pomp package version is 1.2.1.1) Please note that the estimations are based on synthetic data, simulated from the waning stochastic model. This is because we were not allowed by the Massachusetts Department of Public Health (MDPH) to make their data public. The real data are available from the MDPH upon request to the Office of Integrated Surveillance and Informatic Services help desk (isishelp@state.ma.us).

The main scripts are then:

  1. run_traj_match.R: run trajectory matching for the deterministic models. This script example runs a single estimation from one parameter set starting value, with maximum execution time of 1 min.
  2. run_mifs.R: run the maximum iterated filtering algorithm to estimate the parameters of the stochastic models. This script example runs a single estimation (with 2 MIF iterations and 2e2 particles), followed by 2 evaluations of the likelihood using particle filtering (with 2e2 particles).

Other items:

  1. R objects:
    • covars.rds: data frame containing the covariates used in the model (birth and age-specific migration rates)
    • simulated_data.rds: data frame that contains the simulated data, i.e., monthly age-specific case reports during 1990–2005
    • mle_waning_model_deterministic.rds: named vector containing the model parameters (fixed+estimated MLE) of the deterministic model
    • mle_waning_model_stochastic.rds: named vector containing the model parameters (fixed+estimated MLE) of the stochastic model
  2. Other files:
    • model_equations.c: C code implementing the observation and the process (deterministic and stochastic variants) models
    • create_pomp_model.R: R script implementing a function that creates the pomp object.