Skip to content

v0.7.8

Latest
Compare
Choose a tag to compare
@wwiecek wwiecek released this 13 Feb 10:12
98e261d

Binaries are available on CRAN

baggr 0.7.8 (late 2023)

New functionality:

  • You can run meta-analyses with just one row of data, but must specify priors
  • baggr_plot can be made to look more like forest plot with baggr_plot(bg, style = "forest")
  • Plotting baggr and baggr_compare objects now has more powerful add_values functionality.
  • You can customise colour of hypermean, e.g. baggr_plot(bg, hyper = "red")
  • For meta-regressions, you can draw a bubble()

Back end and minor changes:

  • Various CRAN and rstan bugfixes. Now that rstan 2.26 is on CRAN, this package requires users to update to it.
  • A few "quality of life"-type and presentation upgrades.
  • You can print hyperparameters of a model using hypermean() and hypersd() (defaults to summaries)
  • Printing baggr models now also includes correlations and the posterior predictive distribution.
  • loo_compare now has better annotation

Bugfixes:

  • Forest plots now display correctly even if you don't label studies/groups

baggr 0.7.4 (late 2022)

  • Faster code: all models should now run by up to 50% faster
  • For standardised data, where mean in control group is by definition 0, you can now say pooling_control = "remove" when calling baggr(). This will avoid estimating parameters which are known to be 0.
  • Predicting effects for new data: for models with covariates you can use effect_draw(object, newdata = ...) or (equivalently) predict(object, newdata = ...)
    to generate predictions for any number of new samples
  • I updated the calculation of the pooling metric so that it's comparable with frequentist packages. See the help file.

Misc:

  • More information when printing models.
  • Baggr automatically checks for a grouping column.
  • For binary data, you can run baggr() without any extra steps like prepare_ma(), by just defining effect when running baggr (or it will default to log OR).
  • I added alias posterior_predict() for drawing from posterior
    sample. This is more consistent with regression modeling and RStan ecosystem.

Bugs:

  • Transforms of samples on baggr_compare plots previously didn't work for some plots. This is now fixed.
  • Fixed a bug when covariates didn't work for some types of summary-level binary data.

baggr 0.6.21 (January-March 2022)

Misc:

  • Printing baggr and baggr_compare objects is now better at showing intervals and you can also change their widths with arguments passed to print.baggr() or directly to baggr_compare()
  • Added student_t() and lognormal() priors and updated some prior documentation
  • Removed some cases where input data would be reordered (previously this could happen to either individual-level continuous data or summary data of binary events)
  • More warning prompts at various stages of model fitting
  • Faster installation and package checks.