View source: R/calc_monitoring_costs.R
calc_monitoring_costs | R Documentation |
Cost calculations for active monitoring scenarios
calc_monitoring_costs(
durs,
probs_of_disease,
per_day_hazard,
N,
cost_mat,
dist = c("gamma", "lnorm"),
gamma_params,
return_scalar = FALSE
)
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 |
a length(probs_of_disease)xlength(durs) matrix of costs, one row per subgroup, one column per duration
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.