Description Usage Arguments Value
View source: R/sim-functions.R
Creates the first layer of an infection tree.
1 | make_first_layer(n_start, tbar, kappa)
|
n_start |
An integer greater than or equal to 1. Number of nodes in the initial layer. |
tbar |
A non-negative scalar. Average duration of the
communicable windows of the initial nodes. Together with
|
kappa |
A non-negative scalar (including |
A tibble
with one row for each new node, and five
columns: id
, id_parent
, id_layer
,
t_infect
, and t_comm
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.