getInfectionTimeDist: Extract and return distribution of infection time of given...

View source: R/interpret.R

getInfectionTimeDistR Documentation

Extract and return distribution of infection time of given sampled case(s)

Description

Extract and return distribution of infection time of given sampled case(s)

Usage

getInfectionTimeDist(record, burnin = 0.5, k, numBins = 10, show.plot = F)

Arguments

record

MCMC output produced by inferTTree

burnin

Proportion of the MCMC output to be discarded as burnin

k

Case(s) whose posterior infection times are to be extracted. Either a string matching one of the case names in the data, or a vector of such strings

numBins

Number of bins to use for plot

show.plot

Show a barplot of the distribution

Value

Posterior infection times for the case(s) in k. If length(k)==1 then a vector is returned, otherwise a matrix


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