n8thangreen / BCEA

Bayesian Cost Effectiveness Analysis. Given the results of a Bayesian model (possibly based on MCMC) in the form of simulations from the posterior distributions of suitable variables of costs and clinical benefits for two or more interventions, produces a health economic evaluation. Compares one of the interventions (the "reference") to the others ("comparators"). Produces many summary and plots to analyse the results
https://n8thangreen.github.io/BCEA/
GNU General Public License v3.0
3 stars 2 forks source link

Data names override default R functions #110

Open MikeLydeamore opened 2 years ago

MikeLydeamore commented 2 years ago

There are a few named objects in the package datasets that are overwriting default R objects.

In Smoking: c and pi override the function and constant. In Vaccine, c overrides the concatenate function.

In both cases, the bracketing means that the function and the dataset are accessible at the same time, but I could imagine an edge case (probably in do.call) that would cause some unexpected behaviour.

Could these be renamed so that if the data is loaded there can't be an accidental mixup?

https://github.com/openjournals/joss-reviews/issues/4206