calc_monitoring_costs: Cost calculations for active monitoring scenarios

View source: R/calc_monitoring_costs.R

calc_monitoring_costsR Documentation

Cost calculations for active monitoring scenarios

Description

Cost calculations for active monitoring scenarios

Usage

calc_monitoring_costs(
  durs,
  probs_of_disease,
  per_day_hazard,
  N,
  cost_mat,
  dist = c("gamma", "lnorm"),
  gamma_params,
  return_scalar = FALSE
)

Arguments

durs

a vector of AM durations to consider, in multiples of median incubation period values

probs_of_disease

a vector of probabilities representing the chances that different subgroups have of developing the disease of interest

per_day_hazard

hazard to pass to the calculation of theta

N

number of indiviuals for which to calculate the costs

cost_mat

4x2 matrix of costs where each named row corresponds to a cost, and the columns are the lower and upper bounds

dist

character string specifying the parametric distribution of the incubation period; defaults to "gamma"

gamma_params

the median, shape and scale parameters for the assumed-gamma incubation period distribution

return_scalar

logical, whether to return the scalar max cost value using the first value of durs and probs_of_disease

Value

a length(probs_of_disease)xlength(durs) matrix of costs, one row per subgroup, one column per duration


reichlab/activemonitr documentation built on April 9, 2024, 2:17 p.m.