Learn R Programming

Sobol4R (version 0.4.0)

sobol4r_clinic_model: Two-step clinic model wrapper for Sobol designs

Description

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
)

Value

Numeric vector of length nrow(X).

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.