[Under active development] Methods for simulating and analysing the sizes and lengths of infectious disease transmission chains from branching process models
I think the names of the columns in simulate_tree and their documentation could be improved.
Especially:
infectee_id tracks which of the index cases is the root of each infectee. Perhaps call it index_case_id?
sim_id gives a unique id to each infectee that linked to a given index case (such that the combination of index_case and sim_id is unique. Should this perhaps not be called infectee_id? And be unique throughout the data frame (rather than unique for each index case)?
I'm also wondering if _id really needs to be added to the column names or whether they could just be index_case, infectee, infector.
I think the names of the columns in
simulate_tree
and their documentation could be improved.Especially:
infectee_id
tracks which of the index cases is the root of each infectee. Perhaps call itindex_case_id
?sim_id
gives a unique id to each infectee that linked to a given index case (such that the combination ofindex_case
andsim_id
is unique. Should this perhaps not be calledinfectee_id
? And be unique throughout the data frame (rather than unique for each index case)?I'm also wondering if
_id
really needs to be added to the column names or whether they could just beindex_case
,infectee
,infector
.So instead of currently something like
one would have something like