# NOT RUN {
# See examples vignette for a more in-depth walkthrough.
library(DRAFT)
vignette("DRAFT_examples")
# Run an SEIR model using the incidence file and assuming a
# population of 1 million people.
# The generation time and latent period are set to 2.6 days
# and 3 days respectively
head(incidence_data2)
temp_write = tempdir()
# }
# NOT RUN {
output <- runDRAFT(inc_data=incidence_data2, out_dir=temp_write,
pop = 1e6, epi_model = 2, Tg = 2.6, sigma = 3.)
# }
# NOT RUN {
# Run an SIR model using the incidence file and assuming a
# population of 10,000 people.
# The generation time is set to 3 days. (No need to define
# a latent period.)
head(incidence_data1)
# }
# NOT RUN {
output <- runDRAFT(inc_data=incidence_data2, out_dir=temp_write,
pop = 1e5, epi_model = 1, Tg = 3.)
# }
# NOT RUN {
# }
Run the code above in your browser using DataLab