new features
- allow to use variational inference algorithms
as alternative to the NUTS sampler by specifying
argumentalgorithm
in thebrm
function - implement beta regression models through family
Beta
- implement zero-inflated binomial models through family
zero_inflated_binomial
- implement multiplicative effects for family
bernoulli
to fit (among others) 2PL IRT models - allow to combine fixed and random effects estimates using
the newcoef
method - allow to call the
residuals
method withnewdata
- allow new levels of random effects grouping
factors in thepredict
,fitted
, andresiduals
methods using argumentallow_new_levels
- allow to selectively exclude random effects
in thepredict
,fitted
, andresiduals
methods using argumentre_formula
- add a
plot
method for objects returned by
methodhypothesis
to visualize prior and posterior
distributions of the hypotheses being tested
other changes
- improve evaluation of the response
part of theformula
argument to
reliably allow terms with more than one variable
(e.g.,y/x ~ 1
) - improve sampling efficiency of models containing
many fixed effects through centering the fixed effects
design matrix - improve sampling efficiency of models containing
uncorrelated random effects specified by means
of(random || group)
terms informula
- utilize user-defined functions in the Stan code
of ordinal models to improve readability as well as
sampling efficiency - make sure that model comparisons using
LOO
orWAIC
are only performed when models are
based on the same responses - use some generic functions of the lme4
package to avoid unnecessary function masking. This
leads to a change in the argument order of
methodVarCorr
- allow to change the
ggplot
theme in the
plot
method through argumenttheme
- remove the
n.
prefix in arguments
n.iter
,n.warmup
,n.thin
,n.chains
,
andn.cluster
of thebrm
function.
The old argument names remain usable as deprecated aliases - amend names of random effects parameters to simplify
matching with their respective grouping factor levels
bug fixes
- fix a bug in the
hypothesis
method
that could cause valid model parameters to be falsely
reported as invalid - fix a bug in the
prior_samples
method
that could cause prior samples of parameters
of the same class to be artifically correlated - fix Stan code of linear models with
moving-average effects and non-identity link functions
so that they no longer contain code related solely
to autoregressive effects - fix a bug in the evaluation of
formula
that
could cause complicated random effects terms to be
falsely treated as fixed effects - fix several bugs when calling the
fitted
andpredict
methods withnewdata