ceplane.plot.bcea {BCEA} | R Documentation |
Cost-effectiveness Plane Plot
Description
Produces a scatter plot of the cost-effectiveness plane, together with the sustainability area, as a function of the selected willingness to pay threshold.
Usage
## S3 method for class 'bcea'
ceplane.plot(
he,
comparison = NULL,
wtp = 25000,
pos = c(0, 1),
graph = c("base", "ggplot2", "plotly"),
...
)
ceplane.plot(he, ...)
Arguments
he |
A |
comparison |
Selects the comparator, in case of more than two
interventions being analysed. Default as |
wtp |
The value of the willingness to pay parameter. Not used if
|
pos |
Parameter to set the position of the legend; for a single
comparison plot, the ICER legend position. Can be given in form of a string
|
graph |
A string used to select the graphical engine to use for
plotting. Should (partial-) match the two options |
... |
If
|
Details
In the plotly version, point_colors
, ICER_colors
and area_color
can also
be specified as rgba colours using either the [plotly]toRGB
function or a rgba colour string, e.g. 'rgba(1, 1, 1, 1)'
.
Value
If graph = "ggplot2"
a ggplot object, or if graph = "plotly"
a plotly object containing the requested plot. Nothing is returned when
graph = "base"
, the default.
Grey dots show the simulated values for the joint distribution of the effectiveness and cost differentials. The larger red dot shows the ICER and the grey area identifies the sustainability area, i.e. the part of the plan for which the simulated values are below the willingness to pay threshold. The proportion of points in the sustainability area effectively represents the CEAC for a given value of the willingness to pay. If the comparators are more than 2 and no pairwise comparison is specified, all scatterplots are graphed using different colours.
Author(s)
Gianluca Baio, Andrea Berardi
References
Baio G, Dawid aP (2011). “Probabilistic sensitivity analysis in health economics.” Stat. Methods Med. Res., 1–20. ISSN 1477-0334, doi:10.1177/0962280211419832, https://pubmed.ncbi.nlm.nih.gov/21930515/.
Baio G (2013). Bayesian Methods in Health Economics. CRC.
See Also
Examples
## create the bcea object for the smoking cessation example
data(Smoking)
m <- bcea(eff, cost, ref = 4, Kmax = 500, interventions = treats)
## produce the base plot
ceplane.plot(m, wtp = 200, graph = "base")
## select only one comparator
ceplane.plot(m, wtp = 200, graph = "base", comparison = 3)
## use ggplot2
if (requireNamespace("ggplot2")) {
ceplane.plot(m, wtp = 200, pos = "right", icer = list(size = 2), graph = "ggplot2")
}
## plotly
ceplane.plot(m, wtp = 200, graph = "plotly")
ceplane.plot(m, wtp = 200, comparison = 1, graph = "plotly")