Recent Releases of BCEA
BCEA - BCEA 2.4.7 CRAN
- In
ceplane.plot()for{ggplot2}version used the ggplot syntax thats already used for other plotting arguments so that we can now pass, e.g.wtp = list(value = 20000, colour = "blue", x = 10, y = 10, size = 4). This closes issue #151 so can do something likewtp = list(size = 0)to hide the willingness to pay text. (3d8a770) - Small features added which were missing for the new edition of the BCEA book:
- Extended
ggplotversion legend to take a vertical or horizontal part to theposargument (85ba87f) - Relative font size argument
relfor ceplane and ceac plot (8d1586f) - Added text size
ggplotargument toeib_plot(1e32788) andevi_plot(84aaa2f) label.poslogical argument fixed inceplane.plotforggplot(92e9eb0) and baseR(c7351e4)
- Extended
Scientific Software - Peer-reviewed
- R
Published by n8thangreen over 1 year ago
BCEA - BCEA 2.4.6 CRAN
Patch fixing small bugs from last CRAN release.
- Moved
{voi}package to Suggests in DESCRIPTION and addedrequireNamespace()inevppi()to avoid error when not installed (e.g. on CRAN) (f3e3e3e) - Converted help documentation in
man-roxygenfolder to md (cf858b1) - bugfix: line width in CEAC plot.
{ggplot2}changed in version 3 tolinewidthfromsizeargument and had only changed some of the code. Updated toscale_linewidth_manual(). (60bea9c) - Using
testdatafolder{testthat}unit tests. (cbce0fa)
Scientific Software - Peer-reviewed
- R
Published by n8thangreen almost 2 years ago
BCEA - BCEA 2.4.5 CRAN
Moved internal EVPPI calculation out of BCEA and now uses {voi} package instead.
Refactoring but retaining same interface and functionality.
- Ensure using latest CRAN release of
{voi}which has a patch so that BCEA can use it without losing functionality- Latest version of
{voi}needed when we usecheck = TRUEinvoi::evppi()in order to access fitting data (6e436b5, 94f5fc5)
- Latest version of
evppi()tested against all use cases in BCEA book (1c1457d2)- Select parameters by position (as well as name) in new
evppi()(f2e4d005) - Use single parameter case only like
{voi}package for methodssalandso(#140) - New
evppi()matching output of oldevppi()(1e2c5e7) - No longer require
INLApackage to be available inside ofBCEAso can remove direct dependency. This helps with passing CRAN checks and GitHub Actions ()
Scientific Software - Peer-reviewed
- R
Published by n8thangreen over 2 years ago
BCEA - BCEA 2.4.5 (dev)
Moved internal EVPPI calculation out of BCEA and now calls {voi} package instead.
Refactoring but retaining same interface and functionality.
evppi()tested against all use cases in BCEA book (1c1457d2)- Select parameters by position (as well as name) in new
evppi()(f2e4d005) - Use single parameter case only like
{voi}package for methodssalandso(#140) - New
evppi()matching output of oldevppi()(1e2c5e7) - Latest development version of
{voi}needed when we usecheck = TRUEinvoi::evppi()in order to access fitting data (6e436b5, 94f5fc5) - No longer require
INLApackage to be available inside ofBCEAso can remove direct dependency. This helps with passing CRAN checks and GitHub Actions.
Scientific Software - Peer-reviewed
- R
Published by n8thangreen over 2 years ago
BCEA - BCEA 2.4.4
Patch
June 2023
- Patch to fix a CRAN checks error. Suggested package
MCMCviswasn't used conditionally in unit test. Moved to Required packages inDESCRIPTION.
Scientific Software - Peer-reviewed
- R
Published by n8thangreen almost 3 years ago
BCEA - BCEA 2.4.3
Bug fixes
- Consistent colours across plots for each intervention for grid of plots in
plot.bcea()(cf1ee43) make.report()change variable name (f940f2e)- Fixed issue with summary table where names of interventions in the wrong order (6a006e3)
summary.bcea()now only prints results for chosen comparisons and not always all of them.kstarandbestinbcea()object were not updated with subset of interventions (#125)
Refactoring
withr::with_par()used in plotting functionplot.bcea()to only temporarily change graphics parameters. (725c536)- Using
@mdand markdown syntax in function documentation - Update
psa.struct()to add the absolute value in the formula to compute the weights (1cea278) - Use
dplyrpiping new syntax from.data$*to simply using speech marks"*"(2b280ad)
Miscellaneous
- Template added for GitHub Issues (0ea59fa)
Scientific Software - Peer-reviewed
- R
Published by n8thangreen about 3 years ago
BCEA - BCEA 2.4.2
August 2022
Bug fixes
summary.bcea()wasn't passingwtpargument tosim_table()internally (5440eb3)summary()was the same for basicbceaandmulti.ceobjects. Now has ownsummary.pairwise()method. (88ade51)struct.psa()output now works withsummary()and plots all still work without having to use $ to get atbceaobject as before. (b014c83)- Changed
wtpargument inbcea()tokbecausewtpin the plotting functions refers to the wtp line and so is a scalar whereaskis a grid of points. Added an error message to use new argument. (b014c83) bcea()still allows a scalarkbut added a warning that this will give empty plots.- Updated GitHub Actions for checking the package to use
r-lib/Actionsversion 2. There was an error with not finding INLA but this was solved by Gabor at RStudio (see thread here https://community.rstudio.com/t/not-finding-inla-package-not-on-cran-in-actions/141398) - GrassmannOptim package r-release-macos-x86_64 isn't available resulting in a CRAN check error and doesn't appear to be maintained. Tried emailing the author but bounced. Removed dependency and copied
GrassmannOptim()function inside of package with acknowledgement.
Refactoring
- Now uses
Rdpackfor bibliography in documentation (229c96d) - The cost and health values in the
SmokingandVaccinedata sets have been renamed fromcandetocostandeff. This is to avoid any conflict with thec()function. - Changed the axes labels in the cost-effectiveness planes from "differential" to "incremental". (688d98b)
New features
- Can now specify what order the interventions labels are in the legend for ce plane (and contour plots) for base R and ggplot2 i.e. reference first or second with optional
ref_firstargument (cc38f07) - Can specify currency for axes in
ce-plane.plotandceac.plotggplot2versions (6808aa6) - Argument added to
ceplane.plotoficer_annotto annotate each of the ICER points with the text label of the intervention name. Only forggplot2at the moment. (a7b4beb) - Added
posargument tocontour2()so that its consistent withcontour()andceplane.plot(). (50f8f8b) - Allow passing
refargument by name as well as index inbcea(). (9eab459)
Scientific Software - Peer-reviewed
- R
Published by n8thangreen almost 4 years ago
BCEA - Mainly bugs fixes from CRAN release v2.4.1
BCEA 2.4.1.2
April 2022
Bug fixes
ceplane_ggplot()missing legend- Legend bug in
evppi() - Arguments in consistent same order as
ceplane.plot() ceplane_plot_base()wasn't showing grey area. Fixed by removingalphatransparencyceac.plot()wasn't showing confidence interval by default for one comparison- Typo fixed in dropping dimension in
compute_vi() setReferenceGroup()for CEAC plot legend error; doesn't use supplied names but generic intervention 1, intervention 2, ... (#82)- Missing
multi.ce()line for reference group (#80)
Miscellaneous
- Use
clipackage for warning messages - Clean
@keywordsin Roxygen- Removed all the internal helper functions from the Manual by using
@keywordinternal
- Removed all the internal helper functions from the Manual by using
- Refactor contour plots
- Plot functions take more standard
ggplot2format style arguments e.g. as list- Extend some function (
ceac.plot()) to take more style arguments than before for e.g. colour of lines, types of points and line thickness. - Resuse
ceplane.plot()code incontour()
- Extend some function (
goodpracticepackage suggested changes- line length,
seq_len(), remove;
- line length,
- Contributor guidelines (#93)
- Deprecated functions document
contour2()changed soxlim,ylimarguments are optional; the same asceplane.plot()since they are passes to itcontour()andceplane.plot()vignettes written
Scientific Software - Peer-reviewed
- R
Published by n8thangreen about 4 years ago
BCEA -
Major refactoring
Code base improved robustness and extensibility.
* bcea() is now a helper function which calls the constructor new_bcea(), separating concerns.
* new_bcea() composed of smaller HEE statistics functions with names starting with compute_* e.g. compute_CEAC(), compute_EIB(),.... This allows us to call and test them individually.
It also allows more flexibility in changing or adding functionality to new_bcea().
* Plotting functions have been rewritten. These functions now simply dispatch to the base R, ggplot2 or plotly versions (think strategy pattern).
Internally, these functions, e.g.ceplane_plot_ggplot(), are also split into parameter and data setting and plotting components.
This modulisation allows us to add new layers to plots or modify existing parameter sets and defaults. We could also return the data without the plotting step as in e.g. ggplot2::autoplot().
It also means we can reuse some functionality across plots such as axes and legend setting e.g. BCEA:::where_legend().
* ceac_plot() changes
* Deprecated mce.plot(). Now dispatched on ceac.plot() for both multi.ce() and bcea() outputs.
* For a multiple comparison the plot for pairwise comparison over all interventions is returned by default. The alternative version of each comparison against the reference group is still available.
* Plots and tables using S3 methods for bcea type object.
* Tables updated. Duplication in summary() and sim_table() removed.
* createInputs() used for EVPI calculation now dispatches S3 methods by JAGS, BUGS, Stan and other R data types.
* make.report() rewritten to have separate section files.
New features
- Extend ways to set comparison interventions. Subsets of comparison can still be set in a call to a plotting function as before.
Now subsets can be set in both the original
bcea()construction or separately using a setter functionssetComparisons(). - Similarly, maximum willingness to pay and the reference group can be set with
setKmax()andsetReferenceGroup(), respectively. multi.ce()andCEriskAv()also now work similarly. They operate by modifying thebceaobject, rather than creating new one (think decorator pattern).bcea()methods for jags, WinBUGS, Stan (#76)
Miscellaneous
- Additional help documentation and examples.
- New vignettes about plotting and comparison intervention setting.
- Testing suite started. This is not comprehensive as of yet.
- Added a
NEWS.mdfile to track changes to the package. Details about previous releases, such as dates, versions, fixes and enhancements obtained from CRAN and code comments so a little patchy. pkgdownGitHub site made.- Cheatsheet written and published on RStudio site (#22).
- Dependency package ldr removed from BCEA because it was removed from CRAN (#74)
Scientific Software - Peer-reviewed
- R
Published by n8thangreen over 4 years ago