transmission.network.builder: Build a list of HIV transmission networks data

Description Usage Arguments Value Note Examples

View source: R/transmission.network.builder.R

Description

Build a list of HIV transmission networks data

Usage

1

Arguments

datalist

The datalist that is produced by readthedata()

endpoint

Only transmission events that took place before this point in simulation time, are captured in the output.

Value

a list with the transmission networks data

itimes Branching times -> endpoint - Infection times : to be handle by epi2tree

dtimes Sampling times -> endpoint - Removal times : to be handle by epi2tree

id Receiver's ID - to be handle by epi2tree

parent Donor's ID - to be handle by epi2tree

dtypes sampling/Removal types: diagnosed individuals (0), died and non diagnosed (-1), and alive and non diagnosed (1)

RecId Original receiver ID

DonId Original donor ID

InfecTime Infection time

Samptime Sampling/removal time (diagnosis - death - end of simulation)

GenderRec Gender of receiver

GenderDon Gender of donor

TOBRec time of birth of receiver

TOBDon time of birth of donor

Note

transm.ls[[1]] is the transmission network (epi object) of the first seed

Examples

1
transm.ls <- transmission.network.builder(datalist = datalist,endpoint = 40)

wdelva/RSimpactHelp documentation built on Dec. 26, 2019, 3:42 a.m.