simulate_hhh4u_homog: Simulate from time-homogeneous underreported model

Description Usage Arguments Value Examples

View source: R/homogeneous.R

Description

Simulate from a time-homogeneous endemic-epidemic model with underreporting. Includes a burn-in period to reach stationary phase.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
simulate_hhh4u_homog(
  nu,
  phi,
  kappa,
  psi,
  q = 1,
  lgt = 100,
  start = 10,
  burn_in = 1000
)

Arguments

nu, phi, kappa, psi

the model parameters (scalars)

q

the reporting probability

lgt

the length of the generated time series (integer)

start

initial value of both $X$ and $lambda$ (at beginning of burn in period)

burn_in

number of iterations to discard to reach stationary phase

Value

A named list with elements "X", "X_tilde" and "lambda" containing the unthinned and thinned simulated time series as well as the conditional mean process.

Examples

1
sim <- simulate_hhh4u(nu = 3, phi = 0.4, kappa = 0.2, psi = 0.1, q = 0.5, lgt = 100)

jbracher/hhh4underreporting documentation built on July 21, 2020, 2:08 p.m.