Skip to contents

Sample from normal distribution to find the number of visits required when patient enters pathway.

Usage

dis_init_slots(
  z = parent.frame()$z,
  isr = parent.frame()$isr[z],
  sd_isr = parent.frame()$sd_isr[z],
  n_slots = parent.frame()$n_slots[z]
)

Arguments

z

String - scenario

isr

Float - mean for ISR distribution - default is from isr vector

sd_isr

Float - standard deviation for ISR distribution - default is from sd_isr vector

n_slots

Float - number of visit slots available per day - default is from n_slots vector

Value

Integer - initial service rate

Details

Initial service rate (ISR) or initial visit rate (IVR) have a normal distribution. Based on the provided mean and SD for that distribution, samples to get ISR/IVR. It cannot be (a) less than 0, (b) more than mean+SD*3, or (c) more than n_slots

Examples

dis_init_slots(z = "P1_B_BCap_Blos_BArr", isr = 4, sd_isr = 0.5, n_slots = 230)
#> [1] 3