figshare
Browse
1/1
7 files

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.

dataset
posted on 2016-08-10, 04:51 authored by Katherine Scranton, Jonas Knape, Perry de Valpine

File List

distanceCode.R (MD5: 263965622e4839af0d19193c0cf32195)

obsDataC.R (MD5: 0347a95c067dddee0cf34fe286b7ca9c)

popSimCodeC_E.R (MD5: 531aafb2d51a23449756138cd8ea994a)

simCohortVec.so (MD5: 3ebd32ff70131efa625f378c59e1e46a)

SMCcode_E.R (MD5: d7819abf935cec9b4d6f17962eb4fd78)

execSMC_C_E.R (MD5: c2583fd6716ac06fb377f75f0fd10e4b)

Description

We provide functions to compute distances using all candidate summary statistics and distance metrics in distanceCode.R.

obsDataC.R is a data file that was used as our "observed" data set.

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.

The actual ABC SMC algorithm is coded in a function in SMCcode_E.R.

History