timeTruncate: Truncate transmission matrix by a given time and produce...

Description Usage Arguments Value

View source: R/simTransmission.R

Description

Takes in transmission matrix and trucated it at given time. Then generate the truncated transmission matrix and latent/infectious and recovered cases for both syptomatic and asymptomatic groups, as well as diagnosed and dead cases by a truncated/given time

Usage

1
timeTruncate(transmatrix, time)

Arguments

transmatrix

information matrix of transmission including infection time, recovery/dead time, number of people infected by current individual, current node number of current individual, node number of individual who infected the current person (ancestor), asymptomatic information, diagnosed time and death information of current person

time

a truncated time

Value

a time truncated transmission matrix along with total number and index of Symptomatic_latent, Symptomatic_diagnosed, Symptomatic_recovered, Asymptomatic_infectious, Asymptomatic_recovered and dead cases at the truncated time


Huimin-stat/simTransmission documentation built on Sept. 23, 2020, 12:43 a.m.