Supplement 1. C++ code and R script files for summary statistics, distance metrics, population simulation, and sequential Monte Carlo algorithm used for parameter estimation of a stochastic stage-structured population model.

<h2>File List</h2><div> <p><a href="distanceCode.R">distanceCode.R</a> (MD5: 263965622e4839af0d19193c0cf32195)</p> <p><a href="obsDataC.R">obsDataC.R</a> (MD5: 0347a95c067dddee0cf34fe286b7ca9c)</p> <p><a href="popSimCodeC_E.R">popSimCodeC_E.R</a> (MD5: 531aafb2d51a23449756138cd8ea994a)</p> <p><a href="simCohortVec.so">simCohortVec.so</a> (MD5: 3ebd32ff70131efa625f378c59e1e46a)</p> <p><a href="SMCcode_E.R">SMCcode_E.R</a> (MD5: d7819abf935cec9b4d6f17962eb4fd78)</p> <p><a href="execSMC_C_E.R">execSMC_C_E.R</a> (MD5: c2583fd6716ac06fb377f75f0fd10e4b)</p> </div><h2>Description</h2><div> <p>We provide functions to compute distances using all candidate summary statistics and distance metrics in distanceCode.R. </p> <p>obsDataC.R is a data file that was used as our "observed" data set.</p> <p>We simulated many data sets using popSimCodeC_E.R. This source file contains both an R function to simulate a data set and an interface to call C++ code simCohortVec.co to simulate a data set.</p> The actual ABC SMC algorithm is coded in a function in SMCcode_E.R. </div>