Initialise_2b: Initialise the parameters and infection times.

Description Usage Arguments Value Examples

View source: R/Initialise_2b.R

Description

This function initialises an epidemic (checking it is valid) which has two infection rates.

Usage

1
2
3
Initialise_2b(N = N, rem.times = rem.times, beta1.true = NA,
  beta2.true = NA, p.true = NA, dist.true = NA, inf.times = NA,
  d.lower = d.lower, d.upper = d.upper, dist.mat, reparam = FALSE)

Arguments

N

The size of the total population.

rem.times

A vector of the removal times.

beta1.true

The true value of beta1, will fix beta1 if given, defaults to NA.

beta2.true

The true value of beta2, will fix beta2 if given, defaults to NA.

p.true

The true value of p, will fix p if given, defaults to NA.

dist.true

The true value of d, will fix d if given, defaults to NA.

inf.times

A vector of the infection times.

d.lower

Lower bound on the proposal of d.

d.upper

Upper bound on the proposal of d.

dist.mat

An NxN distance matrix.

reparam

TRUE/FALSE statement of whether we are using the reparameterisation beta2 = p * beta1 (p in (0,1)).

Value

Returns a list with values (beta1.cur, beta2.cur, p.cur, dist.cur, inf.times).

Examples

1
Initilise_2b(beta1.true = 0.004, dist.mat = distance.mat, reparam = T)

BenjamenSimon/EpidemicR documentation built on March 23, 2020, 11:03 p.m.