Plot cost-effectiveness acceptability curves.
plot_ceac.Rd
This function calculates the probabilities that each strategy is the most cost effective.
Arguments
- df
a dataframe.
- wtp
character Name of variable of the dataframe containing the willingness-to-pay thresholds at which the probability of cost effectiveness have been defined.
Examples
# Plot CEAC based on results from calculate_ceac()
data("df_pa")
m_res_ceac <- calculate_ceac(df_pa,
e_int = "t_qaly_d_int",
e_comp = "t_qaly_d_comp",
c_int = "t_costs_d_int",
c_comp = "t_costs_d_comp")
df_ceac_p <- as.data.frame(m_res_ceac)
plot_ceac(df = df_ceac_p,
v_wtp = "WTP_threshold")
#> Error in plot_ceac(df = df_ceac_p, v_wtp = "WTP_threshold"): unused argument (v_wtp = "WTP_threshold")