Learn R Programming

MDMA (version 2.0.0)

plot.CEAC: Plot cost-effectiveness acceptability curve

Description

Plot cost-effectiveness acceptability curve

Usage

# S3 method for CEAC
plot(
  x,
  xlab = sprintf("Cost-effectiveness threshold (%s)", x$currencyUC),
  ylab = "Probability that intervention is cost-effective",
  las = 1,
  xlim = c(0, max(x$s$ICERs)),
  ...
)

Value

returns a plot

Arguments

x

object of class CEAC

xlab

label for x axis

ylab

label for y axis

las

style of the axis labels (see par)

xlim

limits of the x axis

...

other arguments to be passed to the plot function.

Author

Mathijs Deen

Examples

Run this code
CEA(gnomes, insulationMethod, Costs, diffHATS, 1000, "acorns") |>
  CEAC() |>
  plot(xlim = c(0,200))

Run the code above in your browser using DataLab