plot_ceac: Plotting the cost-effectiveness acceptability curves.

plot_ceacR Documentation

Plotting the cost-effectiveness acceptability curves.

Description

This function plots cost-effectiveness acceptability curves.

Usage

plot_ceac(df, name_wtp, currency = "euro")

Arguments

df

a dataframe obtained through the 'calculate_ceac()' or 'calculate_ceac_mult()'.

name_wtp

character. Name of variable of the dataframe containing the willingness-to-pay thresholds at which the probability of cost effectiveness have been defined.

currency

character. Default is "euro". Determines the currency sign to use in the incremental cost effectiveness plane. Currently included signs: "euro", "dollar", "yen", "none".

Value

A ggplot2 graph.

Examples

# Plot CEAC based on results from calculate_ceac()
data("df_pa")
df_ceac_p <- calculate_ceac(df = 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")
plot_ceac(df = df_ceac_p,
          name_wtp = "WTP_threshold")

Xa4P/pacheck documentation built on April 14, 2025, 1:51 p.m.