plot_ceplane | R Documentation |
This function visualizes the cost-effectiveness plane, showing incremental costs vs effects from the bootstrap distribution.
boot_icer_result |
A |
k |
Optional slope (willingness-to-pay threshold). |
subtitle |
Optional subtitle text. |
A ggplot
object displaying the cost-effectiveness plane.
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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.