Skip to contents

This function plots the incremental cost-effectiveness plane.

Usage

plot_ice(df, e_int, e_comp, c_int, c_comp, col = NULL, n_it = NULL, wtp = NULL)

Arguments

df

a dataframe.

e_int

character. Name of variable of the dataframe containing total effects of the intervention strategy.

e_comp

character. Name of variable of the dataframe containing total effects of the comparator strategy.

c_int

character. Name of variable of the dataframe containing total costs of the intervention strategy.

c_comp

character. Name of variable of the dataframe containing total costs of the comparator strategy.

col

character. Name of variable of the dataframe to use to colour (in blue) the plotted dots. Default is NULL which results in grey dots.

n_it

(vector of) numeric value(s). Designate which iteration should be coloured in the colour red.

wtp

numeric. Default is NULL. If different than NULL, plots a linear line with intercept 0 and the defined slope.

Value

A ggplot graph.

Examples

# Generating plot using the example dataframe, and a willlingness-to-pay threshold of 80,0000 euros.
data(df_pa)
plot_ice(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",
         wtp = 8000)