create_param: Initializes outputs for outbreaker

Description Usage Arguments Value Author(s) Examples

Description

This function creates initial outputs and parameter states for outbreaker.

Usage

1

Arguments

data

A list of data items as returned by outbreaker_data, or arguments passed to this function.

config

A list of settings as returned by create_config, or arguments passed to this function.

Value

A list containing two components $store and $current. store is a list with the class outbreaker_store, used for storing 'saved' states of the MCMC. current is a list with the class outbreaker_param, used for storing 'current' states of the MCMC.

outbreaker_store class content:

outbreaker_param class content:

Author(s)

Thibaut Jombart ([email protected])

Examples

1
2
3
4
5
6
7
8
9
## load data
x <- fake_outbreak
data <- outbreaker_data(dates = x$sample, dna = x$dna, w_dens = x$w)

## modify config settings
config <- create_config(move_alpha = FALSE, n_iter = 2e5, sample_every = 1000)

## create param object
param <- create_param(data = data, config = config)

thibautjombart/outbreaker2 documentation built on July 1, 2019, 3:35 p.m.