View source: R/makeEpiRecord.R
| makeEpiRecord | R Documentation | 
Create an epidemiological record of infectors and infectees with corresponding infection and recovery times
makeEpiRecord(lambda, duration = 1, NumCases = 50)
lambda | 
 a numeric vector specifying the time varying intensity lambda(t) which is passed to   | 
duration | 
 the fixed duration of infection (default is 1)  | 
NumCases | 
 the approximate number of infected cases (default is 50)  | 
A matrix with columns "Infectee", "Infector", "InfnTime" (infection time), "RecTime" (recovery time), "DoneFlag".
Suitable for using with getLabGenealogy
Caroline Colijn c.colijn@imperial.ac.uk
Michelle Kendall michelle.louise.kendall@gmail.com
getLabGenealogy
myepirecord <- makeEpiRecord(c(1,2,3,4), duration=2, NumCases=100)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.