sis_apf: Fully adapted auxiliary Particle Filter for SIS model with...

Description Usage Arguments Value

View source: R/sis_apf.R

Description

Fully adapted auxiliary Particle Filter for SIS model with Population Observation

Usage

1
sis_apf(y, model_config, particle_config)

Arguments

y

a vector of length (T+1)

model_config

a list containing:

  • 'N': size of the population

  • 'alpha0' : initial infection probability

  • 'lambda': infection rate

  • 'gamma': recovery rate

  • 'adjacency_matrix_b': network structure

  • 'rho': reporting rate

particle_config

a list containing:

  • 'num_particles' : number of particles for the bootstrap particle filter

  • 'ess_threshold' : if effective sample size drops below the threshold, then perform a resample step. ess_threshold = 1 means resampling at every step.

  • 'save_particles': binary

  • 'clock' : binary, default to FALSE. If clock = TRUE, then we will use a stopwatch to document its Sys.time()

  • 'save_genealogy': binary

  • 'verbose':

  • 'exact': binary, if TRUE, then uses exact PoisBinom and exact CondBern, if FALSE then use translated Poisson and MCMC for CondBern. MUST HAVE!

  • 'num_mcmc": required if exact = FALSE;

Value

A list containing


nianqiaoju/agents documentation built on Feb. 19, 2021, 12:18 a.m.