getBestParameter: Return the best parameter set found

View source: R/getBestParameter.R

getBestParameterR Documentation

Return the best parameter set found

Description

Extract the best result from a data frame of optimization runs and return it as a valid Para list.

Usage

getBestParameter(para)

Arguments

para

A data frame with columns 'y' and 'x.1' to 'x.27'.

Value

This function returns an env data frame (tibble [560 × 15] (S3: grouped_df/tbl_df/tbl/data.frame)) with the following entries:

resource (chr)

name of the seized resource: 'bed' 'bed' 'bed' 'bed' ...

time (num)

time step: 3 10 12 13 14 15 15 15 15 16 ...

server (int)

server: 1 2 3 2 3 4 3 4 5 6 ...

limit (num)

limit: Inf Inf Inf Inf Inf ...

replication (int)

replication: 1 1 1 1 1 1 1 1 1 1 ...

upper (int)

upper: 1 2 3 2 3 5 5 5 5 7 ...

lower (int)

lower: 1 2 3 2 3 3 3 3 3 5 ...

med (num)

med: 1 2 3 2 3 4 4 4 4 6 ...

date (POSIXct)

time, format: yyyy-mm-dd hh:mm.ss

rwdate (POSIXct)

format: '2020-03-01' '2020-03-08' '2020-03-15' '2020-03-15' ...

source (chr)

name of the simulation that was used: 'babsim' 'babsim' 'babsim' 'babsim' ...

See Also

mapXToPara

Examples

getBestParameter(getParaSet(5374))

babsim.hospital documentation built on May 30, 2022, 9:05 a.m.