psProbVec: Get path-specific vector of removal probabilities over...

View source: R/misc.R

psProbVecR Documentation

Get path-specific vector of removal probabilities over duration of infection

Description

Get path-specific vector of removal probabilities over duration of infection

Usage

psProbVec(maxInf, dist, psParams)

Arguments

maxInf

Integer. The maximum length of time an individual can spend in the infectious compartment

dist

Character. Specifies the distribution used to describe the duration of the infectious period. One of 'exp', 'gamma', or 'weibull'

psParams

List. the parameters associated with the distribution specified.

Value

The path-specific vector of removal probabilities.

Examples

psProbVec(1:14, 'gamma', list(shape = 4, rate = 1))

ceward18/BayesSEIR documentation built on June 15, 2022, 11:06 a.m.