simulate_incidence_stats_fast: Function to calculate theoretical value for x.loi and I

Description Usage Arguments Value Examples

Description

Function to calculate theoretical value for x.loi and I

Usage

1
simulate_incidence_stats_fast(P, dist.X.loi, dist.X.los = NA)

Arguments

P

prevalence of HAIs

dist.X.loi

probability mass function of distribution of lengths of infection

dist.X.los

vector of probabilities for values 1:length(dist.X.los) of X.los

Value

list with following components

Examples

1
2
3
4
example.dist <- create_dist_vec(function(x) dpois(x-1, 7), 70)
data.fast.inc.theo <- simulate_incidence_stats_fast(P=0.05, dist.X.loi = example.dist)
data.fast.inc.theo$x.loi
data.fast.inc.theo$I

prevtoinc documentation built on June 18, 2019, 5:05 p.m.