keyoutput: Generate summaries of trajectories

View source: R/keyoutput.R

keyoutputR Documentation

Generate summaries of trajectories

Description

keyoutput apply to a mwss object returns a list with number of simulation (nSimulations), number of wards (nwards), the number of admission over the whole simulation (nadm), the maximal number of patients that were simultaneously isolated over the whole simulation (ISO), the maximal number of professionals that simultaneously took sick leave over the whole simulation (SL), the statistical summary of infections over the whole simulation (infection), the statistical summary of incidence over the whole simulation (incidence), the statistical summary of tests implemented over the whole simulation (tests).

Used with the scale = 0, the function returns statistics calculated at the facility scale. Used with the scale = 1, the function returns statistics calculated for each ward.

Using focus argument limit outputs to one of the three last list contains in the generic method.

n_extinction is the number of extinction among all simulations. perc_outbreak is the proportion of simulations were an epidemic was observed (only with scale = 1). n_noso is the average number of nosocomial infections in a given population over the simulations. n_intro is the average number of infected patients introduced in a given population over the simulations. n_out is the average number of professionals of a given population who was infected in community over the simulations. incPA, incPM, incPS, incHA, incHM and incHS are respectively the average incidence of asymptomatic, mild symptomatic and severe symptomatic patients and professionals (H: healthcare workers) over the simulations. incP and incH are the respective incidence among patients and professionals (including asymptomatics and symptomatics). nTestP and nTestH are the respective number of tests performed on patients and professionals. n_dtestP and n_dtestH are the respective average daily number of tests performed on patients and professionals.

Usage

keyoutput(trajmwss,  scale = 0, focus = NULL, outb_Thhold = 1)

Arguments

trajmwss

mwss object. List of list produced by multisim function

scale

NULL or numeric vector. 0 is the facility scale, 1 is the ward scale.

focus

String. Limit the output to infection data (focus = "infections"), incidence data (focus = "incidence") or test counter (focus = "test").

outb_Thhold

Integer. Defines the minimal number of cases requested to define an epidemic (default is 1, only used with scale = 1).

Value

List

Examples

data("toydata")
list2env(toydata,envir=.GlobalEnv)
gdata <- build_gdata()
model <- mwss(ward_names, pop_size_P, pop_size_H, nVisits, LS, gdata, tSim = 30)
results <- multisim(model, 5, ward_names)

keyoutput(results,  scale = 0, focus = NULL)
keyoutput(results,  scale = 1, focus = NULL, outb_Thhold = 1)
keyoutput(results,  scale = 0, focus = "incidence")


MESuRS-Lab/mwss documentation built on Sept. 12, 2023, 12:08 a.m.