Sim_Active_Infections: Simulate Active Infections

Description Usage Arguments Value Examples

View source: R/Sim_Active_Infections.R

Description

Simulate Active Infections

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
Sim_Active_Infections(
  dat1 = StandardData,
  dat2 = EarlyIntervention,
  dat3 = LowerRate,
  MU1 = 4,
  MU2 = 3.6,
  size1 = 1,
  size2 = 0.9,
  parallel = FALSE,
  max_iter = 5
)

Arguments

dat1

Standard infection pattern (vector) for black barplot

dat2

Comparison infection pattern (vector) for blue barplot

dat3

Comparison infectin pattern (vector) for red barplot

MU1

expected time (integer) to getting infected for 1st column

MU2

expected time (integer) to getting infected for 2nd column

size1

Dispersion parameter (integer) for negative binomial distribution so that var = MU + MU^2/size (first column)

size2

Dispersion parameter (integer) for negative binomial distribution so that var = MU + MU^2/size (second column)

parallel

Option to parallelize simulation replicates

max_iter

number if iterations for replicates

Value

2 x 3 barplots comparing daily active infections for different infection rates and different parameters (MU and size).

Examples

1
Sim_Active_Infections(dat1 = StandardData,dat2 = EarlyIntervention,dat3 = LowerRate,MU1=4,MU2 = 3.6,size1=1,size2=0.9,parallel = FALSE,max_iter=5 )

egetzen5/RpCS documentation built on Dec. 20, 2021, 3:22 a.m.