knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "man/figures/README-", out.width = "100%" )
Coronavirus has spread through most countries in the world. Xi (2020) developed a novel Monte Carlo simulation procedure for modeling Covid19 spread over time. In this package, we implement the simulation, recreate Fig 2 which explores active infections over a number of days under a variety of parameter settings (see paper), and additionally we incorporate a daily hospitalization rate into the simulation.
You can install the released version of RpCS from CRAN with:
library(devtools) library(stats) library(parallel) library(foreach) library(doParallel) library(fame) install_github("egetzen5/RpCS") library(RpCS)
Sim_Active_Infections(max_iter=1000)
Sim_Daily_Hospitalizations(max_iter=1000)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.