Learn R Programming

serofoi (version 1.0.3)

set_foi_init: Sets initialization function for sampling

Description

Sets initialization function for sampling

Usage

set_foi_init(foi_init, is_log_foi, foi_index)

Value

Function specifying initialization vector for the Force-of-Infection

Arguments

foi_init

Initialization function for sampling. If null, default is chosen depending on the foi-scale of the model

is_log_foi

Boolean to set logarithmic scale in the FoI

foi_index

Integer vector specifying the age-groups for which Force-of-Infection values will be estimated. It can be specified by means of get_foi_index

Examples

Run this code
data(chagas2012)
foi_index <- get_foi_index(chagas2012, group_size = 5, model_type = "age")
foi_init <- set_foi_init(
  foi_init = NULL,
  is_log_foi = FALSE,
  foi_index = foi_index
)

Run the code above in your browser using DataLab