Changes in BCEA

March 26, 2019

(This article was first published on R on Gianluca Baio, and kindly contributed to R-bloggers)

I’ve just updated the GitHub’s version of BCEA. Andrea has done, as usual, some very nice work – this time he’s mainly focussed on the graphical engine underlying the graphs produced by BCEA to post-process the outcome of the economic model.

The main changes are the following:

  • Added plot rendering via plotly (using the command graph=“plotly”) to each of the functions:
  • ceplane.plot
  • eib.plot
  • ceac.plot
  • evi.plot
  • info.rank
  • Included additional graphical output options to these functions, e.g. point_colors to ceplane.plot. These are fully documented in the function help pages.
  • The running version has been updated to 2.3-00
  • Added rlang, dplyr to “Imports”, to solve the “no visible binding” note and for data manipulation functions in info.rank, respectively
  • Added plotly to “Suggests”
  • Aligned info.rank documentation to roxygen
  • Updated documentation of modified functions

In addition the objects col and ICER.col are now softly deprecated in ceplane.plot (where point_colors and ICER_colors are preferred).

Assuming you’ve updated BCEA (using for example devtools::update_github(“giabaio/BCEA”)) and that you have installed plotly, then you can test the new graphical engine using code such as the below

# Load BCEA
# Load the Vaccine example dataset (built-in)
# Runs bcea
m=bcea(e,c,ref=2,interventions=c("Status quo","Vaccine"))
# And plots the results

which produces the following graphs.

plotly is of course super cool in that it lets you explore elements of the graph — for example, you can hover over the points in the Cost-Effectiveness plane (the left hand side graph) and you can actually visualise the points coordinates. Similarly, when you move the cursor across the CEAC (the curve on the right hand side), plotly will show the actual value of the probability of cost-effectiveness.

This is actually quite exciting (as I’m playing with it right now, seems like you can do all sorts of cool things, including automatic zooming in a graph etc.).

To leave a comment for the author, please follow the link and comment on their blog: R on Gianluca Baio. offers daily e-mail updates about R news and tutorials on topics such as: Data science, Big Data, R jobs, visualization (ggplot2, Boxplots, maps, animation), programming (RStudio, Sweave, LaTeX, SQL, Eclipse, git, hadoop, Web Scraping) statistics (regression, PCA, time series, trading) and more...

If you got this far, why not subscribe for updates from the site? Choose your flavor: e-mail, twitter, RSS, or facebook...

Comments are closed.

Search R-bloggers


Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)