
Recover a long format infectivity profile from an EpiEstim style matrix
Source: R/infectivity-profile.R
make_empirical_ip.RdRecover a long format infectivity profile from an EpiEstim style matrix
Arguments
- omega
a matrix of probabilities, starting at time zero, with columns representing one possible infectivity profile, with the fist value being the probability at time zero (to 0.5). Alternatively this can be a vector of probabilities for one single profile, resulting in 1 bootstrap.
- normalise
is this a probability mass function? In which case we make the sum of this equal to one (the default). If
FALSEthen the input matrix, or vector is clipped so that its maximum value is one. If this is a number then the PMF is scaled to this value.