Skip to contents

Sample from normal distribution to find the number of visits required on patient's final day in pathway.

Usage

dis_end_slots(
  z = parent.frame()$z,
  end_sr = parent.frame()$end_sr[z],
  sd_esr = parent.frame()$sd_esr[z]
)

Arguments

z

String - scenario

end_sr

Float - mean for ESR distribution - default from end_sr vector

sd_esr

float - standard deviation for ESR distribution - default from sd_esr vector

Value

x Integer - end service rate

Details

End service rate (ESR) or final visit rate (FVR) have a normal distribution. Based on the provided mean and SD for that distribution, samples to get ESR/FVR. It cannot be (a) less than 0, or (b) more than mean+SD*3.

Examples

dis_end_slots(z = "P1_B_BCap_Blos_BArr", end_sr = 1, sd_esr = 0.5)
#> [1] 1