Learn R Programming

babsim.hospital (version 11.8.8)

funOptimizeSim: funOptimizeSim

Description

Interface function to evaluate one parameter configuration from babsimHospitalPara

Usage

funOptimizeSim(x, conf, data, ...)

Arguments

x

num: real values. Will be interpreted as parameter values for babsimHospital. Names of these parameters can be obtained via getParameterName.

conf

list with the following entries:

seed

seed. Default: 123

simRepeats

simmer repeats

parallel

simmer parallel runs. Default: FALSE

perCores

percentage of cores used for parallel simmer simulations. Default: 0.5 (=50 percent)

ICU

use ICU infection data. Default: FALSE

logLevel

log leved (0 or 1). Default: 0 (no output)

data

list with simData and fieldData

...

additional variables

Value

This function returns a real value, that represents the combined rmse from the three beds types.

Examples

Run this code
# NOT RUN {
x <- getStartParameter()
conf <- babsimToolsConf()
data <- getObkData()
err <- funOptimizeSim(x = x, conf = conf, data = data)
# }

Run the code above in your browser using DataLab