simulate_incidence_stats_fast {prevtoinc}R Documentation

Function to calculate theoretical value for x.loi and I

Description

Function to calculate theoretical value for x.loi and I

Usage

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

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

[Package prevtoinc version 0.12.0 Index]