getError | R Documentation |
Determine error from babsim runs. This error is the sum of the RMSE values for bed, intensiveBed, and intensiveBedVentilation.
getError(res, conf)
res |
Results from |
conf |
configuration |
This function returns a num value, that represents the combined rmse from the beds.
para <- babsimHospitalPara() conf <- babsimToolsConf() data <- getObkData() set.seed(conf$seed) para <- checkSimPara(para) arrivalTimes <- getArrivalTimes(data$simData$Infected) envs <- babsimHospital( arrivalTimes = arrivalTimes, conf = conf, para = para ) fieldEvents <- getRealBeds( data = data$fieldData, resource = conf$ResourceNames ) res <- getDailyMaxResults( envs = envs, fieldEvents = fieldEvents, conf = conf ) err <- getError(res, conf = conf)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.