getGenerationTimeDist: Extract and return realised generation time distribution

View source: R/interpret.R

getGenerationTimeDistR Documentation

Extract and return realised generation time distribution

Description

Extract and return realised generation time distribution

Usage

getGenerationTimeDist(
  record,
  burnin = 0.5,
  maxi = 2,
  numBins = 20,
  show.plot = F
)

Arguments

record

MCMC output produced by inferTTree

burnin

Proportion of the MCMC output to be discarded as burnin

maxi

Maximum generation time to consider

numBins

Number of time bins to compute and display distribution

show.plot

Show a barplot of the distribution

Value

Vector of times between becoming infected and infecting others (generation times) in the posterior


xavierdidelot/EpiPhylo documentation built on Sept. 28, 2023, 6:39 p.m.