View source: R/funBabsimHospital.R
| funBaBSimHospital | R Documentation |
funBaBSimHospital implements an interface to the
babsim.hospital package.
babsim.hospital is a discrete-event simulation model
for a hospital resource planning problem.
The project is motivated by the challenges faced by health care institutions in
the COVID-19 pandemic.
It can be used by health departments to forecast demand for intensive care beds,
ventilators, and staff resources.
funBaBSimHospital provides an interface to getTrainTestObjFun.
funBaBSimHospital( x, region = 5374, nCores = 2, verbosity = 0, rkiEndDate = "2020-12-09", icuEndDate = "2020-12-09", trainingWeeksSimulator = 10, trainingWeeksField = 6, totalRepeats = 10 )
x |
|
region |
|
nCores |
|
verbosity |
|
rkiEndDate |
|
icuEndDate |
|
trainingWeeksSimulator |
|
trainingWeeksField |
|
totalRepeats |
|
y numeric function value.
BABSIM_HOSPITAL <- FALSE
if(BABSIM_HOSPITAL){
## babsim.hospital version must be greater equal 11.7:
ver <- unlist(packageVersion("babsim.hospital"))
if( ver[1] >= 11 & ver[2] >= 7){
x <- matrix(as.numeric(babsim.hospital::getParaSet(5374)[1,-1]),1,)
funBaBSimHospital(x)
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.