gibbs_theta: Gibbs sampler for theta

View source: R/gibbs-sampler.R

gibbs_thetaR Documentation

Gibbs sampler for theta

Description

allows two parameterizations of the stochastic SIR model

Usage

gibbs_theta(SS, iota_dist, par_prior, theta, param, Y)

Arguments

SS

sufficient statistics

iota_dist

c("exponential", "weibull"); distribution of the infection period

par_prior

named list; parameters of the prior distributions

theta

parameters of the SIR process

param

c("bg", "bR"); parameterize the models in terms of (beta, gamma) or (beta, R0)

Y

observed data

Value

new value for theta


rmorsomme/PDSIR documentation built on April 27, 2023, 2:56 p.m.