View source: R/interpret.R View source: R/extras/getIncidentCases.R
| getIncidentCases | R Documentation | 
Returns and/or plot numbers of sampled and unsampled cases over time
getIncidentCases(
  record,
  burnin = 0.5,
  numBins = 10,
  dateT = NA,
  show.plot = FALSE
)
record | 
 Output from inferTTree function  | 
burnin | 
 Proportion of the MCMC output to be discarded as burnin  | 
numBins | 
 Number of time bins to compute and display incident cases  | 
dateT | 
 Date when process stops (this can be Inf for fully resolved outbreaks)  | 
show.plot | 
 Show a plot of incident cases over time with stacked bars  | 
List with four entries. Time is a vector of the time points. allCases is the average number of cases at each time in the posterior. sampledCases: average number of sampled cases. unsampCases: average number of unsampled cases.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.