View source: R/calculate_threshold_probs.R
calculate_threshold_probs | R Documentation |
For each policy alternative, this function calculates the probability that the peak (or minimum) value exceeds (or is below) a specified threshold(s) using a Riemann sum approach.
calculate_threshold_probs(max_min_values_list, Dp, Dt_max = TRUE)
max_min_values_list |
A list generated by |
Dp |
A vector of threshold values to calculate the probabilities for. |
Dt_max |
A logical value indicating whether the decision threshold
is a maximum ( |
A list of vectors of threshold values and corresponding probabilities.
tmin <- "2021-01-01"
tmax <- "2021-04-10"
D <- 750
Dp <- c(750, 1000, 2000)
peak_values_list <- get_max_min_values(
psa_data,
tmin = tmin,
tmax = tmax,
Dt_max = TRUE
)
calculate_threshold_probs(
peak_values_list,
Dp = Dp,
Dt_max = TRUE
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.