Skip to contents

Calculates mu and sigma, and stores both within los_params, within the length of stay dataframe (losA).

Usage

calculate_mu_sigma(
  est_method = parent.frame()$est_method,
  losA = parent.frame()$losA,
  sd_los = parent.frame()$sd_los
)

Arguments

est_method

Integer - indicates estimation method to use, either 1 or 2

losA

Dataframe - imported from excel, contains length of stay parameters

sd_los

Float - standard deviation for length of stay distribution

Value

losA dataframe with new mu, sigma and los_params columns.

Examples

if (FALSE) {
losA <- calculate_mu_sigma(est_method = 1, losA = losA, sd_los = 3)
}