sis_xx_gibbs_swap_alltimes: Gibbs sampler for SIS model

Description Usage Arguments Value

View source: R/sis_xx_gibbs_swap_alltimes.R

Description

update the agent states for the SIS model given observations such that the complete likelihood is not zero. It performs N swaps at each time step.

Usage

1
sis_xx_gibbs_swap_alltimes(xx, model_config)

Arguments

xx

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

model_config

a list containing parameters and network structure

Value

a new sample


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