New Features
- Fit finite mixture models using family
functionmixture
. - Introduce method
pp_mixture
to compute
posterior probabilities of mixture component
memberships thanks to a discussion with Stephen Martin. - Implement different ways to sample new levels
of grouping factors inpredict
and related
methods through argumentsample_new_levels
.
Thanks to Tom Wallis and Jonah Gabry for a detailed
discussion about this feature. - Add methods
loo_predict
,loo_linpred
,
andloo_predictive_interval
for computing
LOO predictions thanks to Aki Vehtari and Jonah Gabry. - Allow using
offset
in formulas
of non-linear and auxiliary parameters. - Allow sparse matrix multiplication in
non-linear and distributional models. - Allow using the
identity
link for
all auxiliary parameters. - Introduce argument
negative_rt
in
predict
andposterior_predict
to
distinquish responses on the upper and lower
boundary inwiener
diffusion models
thanks to Guido Biele. - Introduce method
control_params
to
conveniently extract control parameters of the
NUTS sampler. - Introduce argument
int_conditions
in
marginal_effects
for enhanced plotting of
two-way interactions thanks to a discussion with
Thomas Kluth. - Improve flexibility of the
conditions
argument ofmarginal_effects
. - Extend method
stanplot
to correctly
handle some newmcmc_
plots of the
bayesplot
package.
Other Changes
- Improve the
update
method to
only recompile models when theStan
code
changes. - Warn about divergent transitions when calling
summary
orprint
onbrmsfit
objects. - Warn about unused variables in argument
conditions
when callingmarginal_effects
. - Export and document several distribution functions
that were previously kept internal.
Bug Fixes
- Fix problems with the inclusion of offsets
occuring for more complicated formulas thanks to
Christian Stock. - Fix a bug that led to invalid Stan code when
sampling from priors in intercept only models thanks
to Tom Wallis. - Correctly check for category specific
group-level effects in non-ordinal models thanks to
Wayne Folta. - Fix problems in
pp_check
when specifying
argumentnewdata
together with arguments
x
orgroup
. - Rename the last column in the output of
hypothesis
to"star"
in order to avoid
problems with zero length column names thanks to
the GitHub user puterleat. - Add a missing new line statement at the end
of thesummary
output thanks to Thomas Kluth.