brms R package for Bayesian generalized multivariate non-linear multilevel models using Stan
rstan::stan_model
via argument stan_model_args
in brm
. (#525)file
in add_ic
after adding model fit criteria. (#478)density_ratio
.offset
.update_adterms
.marginal_smooths
.marginal_effects
to better display ordinal and categorical models via argument categorical
. (#491, #497)kfold
to offer more options for specifying omitted subsets. (#510)nlpar
in method fitted
.cmc
of brmsformula
and related functions thanks to Marie Beisemann.bridge_sampler
method even if prior samples are drawn within the model. (#485)custom_family
.fixef
, ranef
, and coef
via argument pars
. (#520)overwrite
already stored fit indices when using add_ic
.resp
when post-processing univariate models thanks to Ruben Arslan. (#488)ordinal
of marginal_effects
. (#491)exact_loo
of kfold
. (#510)binomial
families without specifying trials
.update
on brmsfit objects thanks to Emmanuel Charpentier. (#490)Post.Prob = 1
if Evid.Ratio = Inf
in method hypothesis
thanks to Andrew Milne. (#509)file
in brm_multiple
.stanvar
. (#459)gp
. This may lead to a considerable increase in sampling efficiency. (#300)loo_R2
.loop
in brmsformula
.horseshoe
and lasso
priors to be set on special population-level effects.set_prior
.brm
via argument file
. (#472)hypothesis
.stan_funs
in brm
in favor of using the stanvars
argument for the specification of custom Stan functions.flist
and ...
in nlf
.dpar
in lf
and nlf
.lognormal
models (#460).cumulative
, sratio
, and cratio
. (#433)kfold
. (#441)launch_shinystan
due to which the
maximum treedepth was not correctly displayed thanks to
Paul Galpern. (#431)cor_car
to support intrinsic CAR models in pairwise difference formulation thanks to the case study of Mitzi Morris.loo
and related methods for non-factorizable normal models.posterior_summary
. This affects the output of predict
and related methods if summary = TRUE
. (#425)pointwise
dynamically in loo
and related methods. (#416)cor_car
in multivariate models with residual correlations thanks to Quentin Read. (#427)beta
models thanks to Hans van Calster. (#404)launch_shinystan.brmsfit
so that all parameters are now shown correctly in the diagnose tab. (#340)custom_family
. (#381)mi
addition term. (#27, #343)mi
terms on the right-hand side of model formulas. (#27)mo
, me
, and mi
. (#313)model_weights
and loo_model_weights
providing several options to compute model weights. (#268)posterior_average
to extract posterior samples averaged across models. (#386)by
in function gr
. (#365)stanvar
. (#219, #357)mmc
terms. (#353)shifted_lognormal
. (#218)make_conditions
to ease preparation of conditions for marginal_effects
.weibull
and exgaussian
models to be consistent with other model
classes. Post-processing of related models fitted with earlier version of brms
is no longer possible.ordinal
models as directly indicating categories even if the lowest integer is not one.hypothesis
method thanks to the ideas of Matti Vuorre. (#362)by
variables as facets in marginal_smooths
.cor_bsts
correlation structure.:
operator to combine groups in multi-membership terms thanks to Gang Chen.LOO
with argument reloo = TRUE
thanks to Peter Konings. (#348)predict
when applied to categorical models thanks to Lydia Andreyevna Krasilnikova and Thomas Vladeck. (#336, #345)weibull
and frechet
models thanks to the GitHub user philj1s. (#375)binomial
models thanks to the GitHub user SeanH94. (#382)model.frame
thanks to Daniel Luedecke. (#393)brm_multiple
thanks to Ruben Arslan. (#27)brmsfit
objects via function combine_models
.pp_average
. (#319)ordinal
to marginal_effects
to generate special plots for ordinal models thanks to the idea of the GitHub user silberzwiebel. (#190)scope
in method hypothesis
. (#327)Stan
functions exported via export_functions
using argument vectorize
.me
terms thanks to Ruben Arslan. As a side effect, it is no longer possible to define priors on noise-free Xme
variables directly, but only on their hyper-parameters meanme
and sdme
.cor_bsts
structure thanks to Joshua Edward Morten. (#312)posterior_summary
and posterior_table
both being used to
summarize posterior samples and predictions.acat
and cratio
models
thanks to Peter Phalen. (#302)pointwise
computation of LOO
and WAIC
in multivariate models with estimated
residual correlation structure.newdata
.This is the second major release of brms
. The main
new feature are generalized multivariate models, which now
support everything already possible in univariate models,
but with multiple response variables. Further, the internal
structure of the package has been improved considerably to be
easier to maintain and extend in the future.
In addition, most deprecated functionality and arguments have
been removed to provide a clean new start for the package.
Models fitted with brms
1.0 or higher should remain
fully compatible with brms
2.0.
gaussian
and student
models. All features
supported in univariate models are now also available in
multivariate models. (#3)categorical
models.Intercept
to improve convergence
of more complex distributional models.summary
output. (#280)re.form
as an alias of
re_formula
to the methods posterior_predict
,
posterior_linpred
, and predictive_error
for consistency with other packages making use of
these methods. (#283)summary
output. (#277)predict
and related methods thanks to Fanyi Zhang. (#224)disp
from the package.fixef
,
ranef
, coef
, and VarCorr
.brms
< 1.0,
which used the multivariate 'trait'
syntax
orginally deprecated in brms
1.0.summary
method cleaner and less error prone.brm
to avoid unexpected behavior in simulation studies.stan_funs
in brmsfit
objects
to allow using update
on models with user-defined
Stan functions thanks to Tom Wallis. (#288)intercept
in group-level terms thanks to
the GitHub user ASKurz. (#279)predict
and related
methods when setting sample_new_levels = "gaussian"
in models with only one group-level effect.
Thanks to Timothy Mastny. (#286)me
.Ksub
, exact_loo
and group
to method kfold
for
defining omitted subsets according to a
grouping variable or factor.se
in skew_normal
models.identity
links on
all parameters of the wiener
family
thanks to Henrik Singmann. (#276)fitted
when returning linear predictors
of ordinal models thanks to the GitHub user atrolle. (#274)marginal_smooths
occuring for multi-membership models thanks to
Hans Tierens.