Description Usage Arguments Value Examples
View source: R/Initialise_2b.R
This function initialises an epidemic (checking it is valid) which has two infection rates.
1 2 3 |
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)). |
Returns a list with values (beta1.cur, beta2.cur, p.cur, dist.cur, inf.times).
1 | Initilise_2b(beta1.true = 0.004, dist.mat = distance.mat, reparam = T)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.