# Example payoffs simulation array
payoffs_sim <- array(
data = c(1000, 2000, 1500, 0.8, 0.85, 0.82, 1000, 2000, 1500, 0.8, 0.85, 0.82),
dim = c(3, 2, 2),
dimnames = list(c("StrategyA", "StrategyB", "StrategyC"), c("cost", "utility"), NULL)
)
# Define WTP range
wtp_range <- seq(0, 100000, by = 1000)
# Plot CEAC
ceac_plot <- plot_ceac(payoffs_sim, wtp_range)
print(ceac_plot)
Run the code above in your browser using DataLab