Releases: paul-buerkner/brms
Releases · paul-buerkner/brms
brms 2.22.0
New Features
- Support different Gaussian process kernels in
gpterms. (#234) - Support stratified
coxmodels via the new addition termbhaz. (#1489) - Support futures for parallelization in the
cmdstanrbackend. (#1684) - Add method
loo_epredthanks to Aki Vehtari. (#1641) - Add priorsense support via
create_priorsense_data.brmsfit
thanks to Noa Kallioinen. (#1354) - Vectorize censored log likelihoods in the Stan code when possible. (#1657)
- Force Stan to activate threading without altering the Stan code
via argumentforceof functionthreading. (#1549) - Support moment matching
looprediction methods. (#1674)
Bug Fixes
- Fix a bug that led to partially duplicated Stan code in multilevel terms
thanks to Henrik Singmann. (#1651) - Fix problems with parallel executions of post-processing functions
sometimes leaving unused R instances behind. Thanks to Andrew Johnson,
Aki Vehtari, and Noa Kallioinen. (#1658) - Fix several minor bugs. (#1648, #1644, #1672, #1642, #1634, #1666, #1664)
Other Changes
- Refactor some of the internal code base to avoid evaluating
many data-dependent quantities several times. (#1653) - Smartly access internal functions when evaluating non-linear formulas. (#1635)
- Improve the documentation in several places.
- Make argument
loooptional inloo_moment_match. - Change the output format of
loo_predictandloo_linpredto be
more consistent with other post-processing functions.
brms 2.21.0
New Features
- Add experimental support for the
pathfinderandlaplacealgorithms
in thecmdstanrbackend. (#1591) - Automatically recompute fit criteria previously stored in the model
if potentially results-changing arguments are provided to the criterion method. - Allow to turn off automatic broadcasting of
constantpriors. - Allow for joint likelihood evaluation in
kfoldvia argumentjoint. - Use several Stan built-in functions implemented since version 2.26
to improve the efficiency of multiple model classes. (#1077)
Other Changes
- Change
make_stancodeandmake_standatato be aliases ofstancodeand
standata, respectively. Changeget_priorto be an alias of a new generic
methoddefault_prior. This enable other packages to define newstancode,
standataanddefault_priormethods to generate Stan code and data, and extract
the default priors, for their own objects building on brms. Thanks to Ven Popov
for helping with this. (#1604) - Change the default prior of the
shapeparameter ofnegbinomialmodels
toinv_gamma(0.4, 0.3)thanks to Aki Vehtari. (#1614) - No longer automatically canonicalize the Stan code if cmdstanr is used
as backend. (#1544) - Export
read_csv_as_stanfitthanks to Ven Popov. (#1619) - Make installation of
shinystanoptional. This means that the package has to
be loaded, vialibrary(shinystan), beforelaunch_shinystancan be used. (#1595) - Improve parameter class names in the
summaryoutput. - Show histograms rather than densities in the
plotmethod by default. - Deprecate argument
Nin theplotmethod in favor of argumentnvariables. - Remove deprecated argument
exact_looin methodkfold.
Bug Fixes
- Remove some remaining uses of Stan's old array syntax.
- Fix a bug in formula parsing of missing values terms with interactions
thank to Guido Biele. (#1608) - Ensure compatibility of
combine_modelswith moment matching. (#1603) - Ensure compatibility with the latest
splines2package version. (#1580) - Fix output of
rmulti_normalthanks to Ven Popov. (#1588) - Prevent memory leaks when executing
kfoldorrelooin parallel.
brms 2.20.3
New Features
- Apply the
horseshoeandR2D2priors globally, that is, for all additive predictor terms specified in the same formula. (#1492) - Use
as.brmspriorto transform objects into abrmsprior. (#1491) - Use matrix data as non-linear covariates. (#1488)
Other Changes
- Switch to the new array syntax of Stan. This increases the version requirements of Stan to >= 2.26.
- No longer support the
lassoprior as it is not a good shrinkage prior and incompatible with the newly implemented global shrinkage prior framework. - No longer support multiple deprecated prior options for categorical and multivariate models after around 3 years of deprecation. (#1420)
- Deprecate argument
newdataofget_refmodel.brmsfit(). (#1502) - Disallow binomial models without
trialsargument after several years of deprecation. (#1501)
Bug Fixes
- Fix a long-standing bug in the post-processing of spline models that could lead to non-sensible results if predictions were performed on a different machine than where the model was originally fitted. Old spline models can be repaired via
restructure. Special thanks to Simon Wood, Ruben Arslan, Marta Kołczyńska, Patrick Hogan, and Urs Kalbitzer. (#1465) - Fix a bunch of minor issues occurring for rare feature combinations.
brms 2.19.0
New Features
- Model unstructured autocorrelation matrices via the
unstrterm
thanks to the help of Sebastian Weber. (#1435) - Model ordinal data with an extra category (non-response or similar)
via thehurdle_cumulativefamily thanks to Stephen Wild. (#1448) - Improve user control over model recompilation via argument
recompile
in post-processing methods that require a compiled Stan model. - Extend control over the
point_estimatefeature inprepare_predictions
via the new argumentndraws_point_estimate. - Add support for the latent projection available in
projpred versions >= 2.4.0. (#1451)
Bug Fixes
brms 2.18.0
New Features
- Support regression splines with fixed degrees of freedom specified via
s(..., fx = TRUE). - Reuse user-specified control arguments originally passed to the Stan backend in
updateand related methods. (#1373, #1378) - Allow to retain unused factors levels via
drop_unused_levels = FALSEinbrmand related functions. (#1346) - Automatically update old default priors based on new input when when updating models via
update.brmsfit. (#1380) - Allow to use
dirichletpriors for more parameter types. (#1165)
Other Changes
- Improve efficiency of converting models fitted with
backend = "cmdstanr"tostanfitobjects thanks to Simon Mills and Jacob Socolar. (#1331) - Allow for more
O1optimization of brms-generated Stan models thanks to Aki Vehtari. (#1382)
Bug Fixes
- Fix problems with missing boundaries of
sdmeparameters in models with known response standard errors thanks to Solomon Kurz. (#1348) - Fix Stan code of
gammamodels withsoftpluslink. - Allow for more flexible data inputs to
brm_multiple. (#1383) - Ensure that
control_paramsreturns the right values for models fitted with thecmdstanrbackend. (#1390) - Fix problems in multivariate spline models when using the
subsetaddition term. (#1385)
brms 2.17.0
brms 2.17.0
New Features
- Add full user control for boundaries of most parameters via the
lbandubarguments ofset_priorand related functions. (#878, #1094) - Add family
logistic_normalfor simplex responses. (#1274) - Add argument
future_argstokfoldandreloofor additional control over parallel execution via futures. - Add families
beta_binomial&zero_inflated_beta_binomialfor potentially over-dispersed and zero-inflated binomial response models thanks to Hayden Rabel. (#1319 & #1311) - Display
ppd_*plots inpp_checkvia argumentprefix. (#1313) - Support the
loglink in binomial and beta type families. (#1316)
Other changes
- Argument
brms_seedhas been added toget_refmodel.brmsfit(). (#1287) - Deprecate argument
initsin favor ofinitfor consistency with the Stan backends. - Improve speed of the
summarymethod for high-dimensional models. (#1330)
Bug Fixes
- Fix Stan code of threaded multivariate models thanks to Anirban Mukherjee. (#1277)
- Fix usage of
int_conditionsinconditional_smoothsthanks to Urs Kalbitzer. (#1280) - Fix an error sometimes occurring for multilevel (reference) models in
projpred's K-fold CV. (#1286) - Fix response values in
make_standataforbernoullifamilies when only 1s are present thanks to Facundo Munoz. (#1298) - Fix
pp_checkfor censored responses to work for all plot types thanks to Hayden Rabel. (#1327) - Ensure that argument
overwriteinadd_criterionworks as expected for all criteria thanks to Andrew Milne. (#1323) - Fix a problem in
launch_shinystanoccurring when warmup draws were saved thanks to Frank Weber. (#1257, #1329) - Fix numerical stability problems in
log_likfor ordinal models. (#1192)
brms 2.16.1
Bug Fixes
- Fix a bug causing problems during post-processing of models
fitted with older versions of brms and thecmdstanrbackend
thanks to Riccardo Fusaroli. (#1218)
brms 2.16.0
New Features
- Support several methods of the
posteriorpackage. (#1204) - Substantially extend compatibility of
brmsmodels
withemmeansthanks to Mattan S. Ben-Shachar. (#907, #1134) - Combine missing value (
mi) terms withsubsetaddition terms. (#1063) - Expose function
get_dparfor use in the post-processing
of custom families thank to Martin Modrak. (#1131) - Support the
squarepluslink function in all families and
distributional parameters that also allow for theloglink function. - Add argument
incl_threstoposterior_linpred.brmsfit()allowing to
subtract the threshold-excluding linear predictor from the thresholds in case
of an ordinal family. (#1137) - Add a
"mock"backend option to facilitate testing
thanks to Martin Modrak. (#1116) - Add option
file_refit = "always"to always overwrite models
stored via thefileargument. (#1151) - Initial GPU support via OpenCL thanks to the help
Rok Češnovar. (#1166) - Support argument
robustin methodhypothesis. (#1170) - Vectorize the Stan code of custom likelihoods via
argumentloopofcustom_family. (#1084) - Experimentally allow category specific effects for
ordinalcumulativemodels. (#1060) - Regenerate Stan code of an existing model via
argumentregenerateof methodstancode. - Support
expose_functionsfor models fitted with the
cmdstanrbackend thanks to Sebastian Weber. (#1176) - Support
log_proband related functionality in models fitted
with thecmdstanrbackend via functionadd_rstan_model. (#1184)
Other Changes
- Remove use of
cbindto express multivariate models after
over two years of deprecation (please usemvbindinstead). - Method
posterior_linpred(transform = TRUE)is now equal
toposterior_epred(dpar = "mu")and no longer deprecated. - Refactor and extend internal post-processing functions
for ordinal and categorical models thanks to Frank Weber. (#1159) - Ignore
NAvalues in interval censored boundaries as long as
they are unused. (#1070) - Take offsets into account when deriving default priors
for overall intercept parameters. (#923) - Soft deprecate measurement error (
me) terms in favor
of the more general and consistent missing value (mi) terms. (#698)
Bug Fixes
- Fix an issue in the post-processing of non-normal ARMA models
thanks to Thomas Buehrens. (#1149) - Fix an issue with default baseline hazard knots in
coxmodels
thanks to Malcolm Gillies. (#1143) - Fix a bug in non-linear models caused by accidental
merging of operators in the non-linear formula
thanks to Fernando Miguez. (#1142) - Correctly trigger a refit for
file_refit = "on_change"if factor level
names have changed thanks to Martin Modrak. (#1128) - Validate factors in
validate_newdataeven when they are simultaneously
used as predictors and grouping variables thanks to Martin Modrak. (#1141) - Fix a bug in the Stan code generation of threaded mixture models
with predicted mixture probabilities thanks to Riccardo Fusaroli. (#1150) - Remove duplicated Stan code related to the
horseshoeprior
thanks to Max Joseph. (#1167) - Fix an issue in the post-processing of non-looped non-linear
parameters thanks to Sebastian Weber. - Fix an issue in the Stan code of threaded non-looped non-linear
models thanks to Sebastian Weber. (#1175) - Fix problems in the post-processing of multivariate meta-analytic
models that could lead to incorrect handling of known standard errors.
brms 2.15.0
New Features
- Turn off normalization in the Stan model via argument
normalizeto increase sampling efficiency thanks to Andrew Johnson. (#1017, #1053) - Enable
posterior_predictfor truncated continuous models even if the required CDF or quantile functions are unavailable. - Update and export
validate_priorto validate priors supplied by the user. - Add support for within-chain threading with
rstan (Stan >= 2.25)backend. - Apply the R2-D2 shrinkage prior to population-level coefficients via function
R2D2to be used inset_prior. - Extend support for
armacorrelation structures in non-normal families. - Extend scope of variables passed via
data2for use in the evaluation of most model terms. - Refit models previously stored on disc only when necessary thanks to Martin Modrak. The behavior can be controlled via
file_refit. (#1058) - Allow for a finer tuning of informational messages printed in
brmvia thesilentargument. (#1076) - Allow
stanvarsto alter distributional parameters. (#1061) - Allow
stanvarsto be used inside threaded likelihoods. (#1111)
Other Changes
- Improve numerical stability of ordinal sequential models (families
sratioandcratio) thanks to Andrew Johnson. (#1087)
Bug Fixes
- Allow fitting
multinomialmodels with thecmdstanrbackend thanks to Andrew Johnson. (#1033) - Allow user-defined Stan functions in threaded models. (#1034)
- Allow usage of the
:operator in autocorrelation terms. - Fix Stan code generation when specifying coefficient-level priors on spline terms.
- Fix numerical issues occurring in edge cases during post-processing of Gaussian processes thanks to Marta Kołczyńska.
- Fix an error during post-processing of new levels in multi-membership terms thanks to Guilherme Mohor.
- Fix a bug in the Stan code of threaded
wienerdrift diffusion models thanks to the GitHub user yanivabir. (#1085) - Fix a bug in the threaded Stan code for GPs with categorical
byvariables thanks to Reece Willoughby. (#1081) - Fix a bug in the threaded Stan code when using QR decomposition thanks to Steve Bronder. (#1086)
- Include offsets in
emmeansrelated methods thanks to Russell V. Lenth. (#1096)
brms 2.14.11
New Features
- Turn off normalization in the Stan model via argument
normalize.
to increase sampling efficiency thanks to Andrew Johnson. (#1017, #1053) - Enable
posterior_predictfor truncated continuous models
even if the required CDF or quantile functions are unavailable. - Update and export
validate_priorto validate priors supplied by the user. - Add support for within-chain threading with
rstan (Stan >= 2.25)backend. - Apply the R2-D2 shrinkage prior to population-level coefficients
via functionR2D2to be used inset_prior. - Extend support for
armacorrelation structures in non-normal families. - Extend scope of variables passed via
data2for use in the
evaluation of most model terms.
Other Changes
- Improve numerical stability of ordinal sequential models
(familiessratioandcratio) thanks to Andrew Johnson. (#1087)
Bug Fixes
- Allow fitting
multinomialmodels with the
cmdstanrbackend thanks to Andrew Johnson. (#1033) - Allow user-defined Stan functions in threaded models. (#1034)
- Allow usage of the
:operator in autocorrelation terms. - Fix Stan code generation when specifying coefficient-level
priors on spline terms. - Fix numerical issues occurring in edge cases during
post-processing of Gaussian processes thanks to Marta Kołczyńska. - Fix an error during post-processing of new levels in
multi-membership terms thanks to Guilherme Mohor. - Fix a bug in the Stan code of threaded
wienerdrift diffusion
models thanks to the GitHub user yanivabir. (#1085) - Fix a bug in the threaded Stan code for GPs with categorical
byvariables thanks to Reece Willoughby. (#1081) - Fix a bug in the threaded Stan code when using QR decomposition
thanks to Steve Bronder. (#1086)