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:
hypermean()
and hypersd()
(defaults to summaries)loo_compare
now has better annotationBugfixes:
pooling_control = "remove"
when calling baggr()
. This will avoid estimating parameters which are known to be 0.effect_draw(object, newdata = ...)
or (equivalently) predict(object, newdata = ...)
to generate predictions for any number of new samplesMisc:
baggr()
without any extra steps like prepare_ma()
, by just defining effect
when running baggr (or it will default to log OR).posterior_predict()
for drawing from posterior
sample. This is more consistent with regression modeling and RStan ecosystem.Bugs:
baggr_compare
plots previously didn't work for some plots. This is now fixed.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.
plot.baggr_compare
and baggr_plot
graphics
(a la forest plot)model="logit"
, call to baggr()
should detect it automatically nowpooling()
includes extra metrics, including study weights calculation
(and better documentation)loocv()
to understand out-of-sample
performance graphicallyprepare_ma(..., effect = "RD")
Misc:
baggr_compare()
nowquantreg
packageprepare_ma()
) can now be applied either to particular
studies or all data (the literature sometimes recommends the latter)prior_sigma
)lognormal()
prior and updated some prior documentationBug fixes:
prior_control
for "logit"
model.binary_to_individual
with non-integer number of events warns user and throws
an error nowbaggr_binary
vignette (rare events section)mutau_cor
baggr_compare
) on the fly
(between "effects"
and "groups"
). Printing comparisons also returns posterior
predictive draws.forestplot
2.0Minor bug fixes:
loocv()
mutau
model
when using plot.baggr_compare
baggr_compare()
summary
option for effect_draw
.New "mutau_full"
model is a generalisation of the "mutau"
model into individual-level data.
The idea is similar as for the recent "rubin_full"
changes, see version 0.6.0.
I also reparameterised the mutau
model. It should be faster and have fewer divergent
transition warnings.Some of the code around the mu and tau model has also been
rewritten on the back end.
On the back end the package now follows the rstantools recommended way of compiling models. The user experience should be exactly the same, but this may avoid some problems when installing the package from GitHub or otherwise compiling it locally.
model="sslab"
. See ?baggr
for basics of
working with this type of a model. A vignette will be added soon.model="rubin_full"
rather than "full"
.
Old syntax will still work, however. Made some documentation and code improvements
around this issue.model="rubin_full"
now. It works the same
way as for model="logit"
. See ?baggr
for more information on how to use it.model="rubin"
with the same inputs as model="mutau"
.
Some data columns are removed automatically in that case.For v0.6 we added more generic code around plotting, printing, grabbing treatment effects etc. While there are no differences on the front-end, this means that for the next versions we will be able to consider some new models and have more homogeneous syntax for all models.
rubin_full
(full
) model.baggr_compare
plots.baggr
models now have their own separate functions,
fixed_effects
and random_effects
, in addition to group_effects
labbe()
.baggr()
with summary data and model="logit"
for automatic conversion)prior_control
and prior_control_sd
in baggr()
show = "covariates"
vignette("baggr_binary")
.prepare_ma
), esp. for prepping binary data.exp
, but any transform is allowed).loo_compare
(thanks to Brice Green)baggr()
using a syntax similar to rstanarm
.
Extra priors are availablebaggr()
outputs prior predictive distributions; they can be examined using
baggr_compare
and effect_plot
, effect_draw
-- 2 new functionsFirst package version for CRAN.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.