generateOutbreak: Generate random data of an outbreak

Description Usage Arguments Value

View source: R/generateOutbreak.R

Description

A function to create a sample dataset of an outbreak

Usage

1
2
3
generateOutbreak(n = 100, percentageCases = 0.5, pathogen = "Salmonella",
  type = "pointsource", startdate = "2013-09-23", enddate = "2013-10-04",
  dataquality = "messy")

Arguments

n

Number of persons

percentageCases

Number between 0 and 1 representing the percentage of cases

pathogen

Quoted character value of the pathogen causing the outbreak. Possible values are: "Salmonella", "Ebola", "Norovirus", "Measles", "Influenza"

startdate

Quoted character value of the first possible date of onset of disease with the format "YYYY-MM-DD". For example: "2013-09-23"

dataquality

Quoted character value of the output quality of the dataset. Possible values are: "good", "standard", "messy". "standard" introduces Na Values, "messy" introduces NA and other random values.

tpye

Quoted character value of type of outbreak. Possible values are: "pointsource", "propageted", "continuing"

startdate

Quoted character value of the last possible date of onset of disease with the format "YYYY-MM-DD". For example: "2013-09-23"

Value

A dataset of a random outbreak


jakobschumacher/epiet documentation built on May 18, 2019, 10:12 a.m.