Skip to contents

Simulate a simple clinic with separate registration and examination stages using simmer. The quantity of interest is the mean time in system over nrep replications for each parameter set.

Usage

sobol4r_clinic_model(
  X,
  cap_reg = 2,
  cap_exam = 3,
  horizon = 2000,
  warmup_prob = 0.2,
  nrep = 10L
)

Arguments

X

Design matrix or data.frame with columns lambda (arrival rate), mu_reg (registration service rate), and mu_exam (examination service rate).

cap_reg, cap_exam

Integer capacities for the registration and examination resources.

horizon

Simulation horizon.

warmup_prob

Fraction of the horizon treated as warmup and discarded before computing the mean time in system.

nrep

Number of replications used to average the mean time in system.

Value

Numeric vector of length nrow(X).