Plot (i)NMB or (i)NHB.
plot_nb.Rd
This function plots the Net Monetary Benefits (NMB) and Net Health Benefits (NHB) for each strategy and the incremental NMB and NHB.
Arguments
- df
a dataframe. Output of `calculate_nb()`
- NMB
logical. Should the (i)NMBs be plotted? Default is TRUE, if FALSE, (i)NHBs are plotted.
- comparators
logical. Should the NMB/NHB for each comparator be plotted? Default is TRUE.
- incremental
logical. Should the incremental NMB/NHB be plotted? Default is FALSE
Examples
# Calculate NB's at a willingness-to-pay threshold of 80000 per unit of effects
data("df_pa")
df_nmb <- calculate_nb(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 = 80000)
# Plot NMB's for each comparator
plot_nmb(df = df_nmb,
NMB = TRUE,
comparators = TRUE)
#> Error in plot_nmb(df = df_nmb, NMB = TRUE, comparators = TRUE): could not find function "plot_nmb"