plot_ceplane: Plot Cost-Effectiveness Plane

View source: R/plot_ceplane.R

plot_ceplaneR Documentation

Plot Cost-Effectiveness Plane

Description

This function visualizes the cost-effectiveness plane, showing incremental costs vs effects from the bootstrap distribution.

Arguments

boot_icer_result

A boot_icer object from boot_icer().

k

Optional slope (willingness-to-pay threshold).

subtitle

Optional subtitle text.

Value

A ggplot object displaying the cost-effectiveness plane.

Examples

set.seed(123)
df <- data.frame(
  c = c(rnorm(100, 500, 100), rnorm(100, 600, 120)),
  e = c(rnorm(100, 0.6, 0.05), rnorm(100, 0.65, 0.06)),
  g = rep(c("control", "treatment"), each = 100)
)
res <- boot_icer(c + e ~ g, data = df, ref = "control", R = 300)
plot_ceplane(res, k = 1000)

ielbadisy/CEACT documentation built on June 11, 2025, 9:19 p.m.