sir_xx_gibbs_blocked_kernel: SIR blocked gibbs

Description Usage Arguments Value

View source: R/sir_xx_gibbs_blocked_kernel.R

Description

update the agent states for the SIR model given observations such that the complete likelihood is not zero.

Usage

1
2
3
4
5
6
7
sir_xx_gibbs_blocked_kernel(
  xx,
  block_members,
  y,
  model_config,
  all_xx_block = NULL
)

Arguments

xx

a matrix of size model_config$N by length(y), can be initialized from sis_init_hidden_popobservation.R

block_members

a list of agent ids, length should not exceed 5

model_config

a list that must contain

all_xx_block

default is NULL. This matrix represents the set 1,2,3^B.

  • N : population size

  • rho : reporting rate

  • alpha0 : vector of probabilities

  • state_to_alpha: function to compute alpha given agent states at a previous time

time_step

0 <=t <= T

Value

xx


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