NEWS
BayesianTools 0.2.0
Bugfixes
- VSEMcreateLikelihood(): the returned likelihood failed for every parameter value because the inner function had no
sum argument.
- Twalk: the Hastings correction of the "hop" and "blow" moves did not match their proposals, which biased the posterior (also with default settings) and caused the jumps to very low posterior values in #67. Twalk results for the same seed change (#291, #67).
- Twalk: continuing a run with runMCMC(out) returned the old samples instead of appending the new ones, and applied the burn-in of the first run again; a burn-in given in the new settings is still applied (#291). Runs in which burn-in and thinning leave no sample now stop with an error instead of returning the start value or failing with "subscript out of bounds".
- Fixed a typo (
False) in the parallel example of createBayesianSetup().
- runMCMC(): continuing an mcmcSamplerList with a single sampler failed with an error; it now continues the sampler and returns an mcmcSamplerList (#281).
- runMCMC(): when continuing a run, settings with value NULL (e.g. the default Z = NULL of DREAMzs) deleted the previous entry; settings$Z then partially matched ZupdateFrequency, so DREAMzs chains for the same seed depended on how the run was continued. NULL settings now keep their previous value (#302). Some continued DREAMzs runs (e.g. runMCMC(out) without new settings) give other results for the same seed. To switch off e.g. temperingFunction when continuing a run, give an explicit value.
- DEzs: with parallel = TRUE or "external", the snooker correction of all internal chains except the last was lost, which gave a too narrow posterior, also with the default pSnooker = 0.1 (#274, #283)
- DEzs: block updates combined with snooker updates gave a wrong posterior; snooker moves are now restricted to the block (#283)
- DE, DEzs: block updates with "correlation" or "random" groups no longer crash when the groups are first computed during the burn-in (#209)
- DE, DEzs: block updates have defaults for k / h; "random" no longer fails when k is less than half the number of parameters and now uses pSel; user groups may have gaps in their numbers (e.g. c(1,1,3)); pGroup without pSel no longer fails; user groups are checked for length and NAs (#209)
- DREAMzs: the snooker update used one of the two difference points as reference point, which gave a too narrow posterior, also with the default pSnooker = 0.1
- posterior density with a matrix of parameters: if only one row was inside the prior, a likelihood that only accepts matrices (parallel = "external") failed and the proposal was rejected; with catchDuplicates = TRUE, matrices with fewer than 2 unique rows failed; row-wise evaluation of a matrix without parallelization now turns likelihood errors into -Inf, as for a single parameter vector
- DREAM, DREAMzs: the crossover adaptation used the crossover values of the wrong generations and standardized the jumps by the sd of the wrong parameters, so pCR was not adapted to the jumps, and updateInterval < nCR stopped with "subscript out of bounds"; DREAMzs also used the same crossover value for all generations of an update interval, and crossover values with probability 0 were still used (#205)
- DREAM, DREAMzs: the crossover adaptation stopped with an error ("object 'pCR' not found" or "missing value where TRUE/FALSE needed") when no chain had moved yet (#235)
- DREAM, DREAMzs: outlier chains were detected from the recorded samples only, and the recorded sample was overwritten instead of moving the chain; now the outlier chain is moved to the best chain, and detection uses all generations. DREAMzs added the current states to Z only after the burn-in, and repeatedly with thin > 1; Z is now updated every ZupdateFrequency generations, so a burn-in no longer changes the trajectory of the chains (#193)
- DREAM, DREAMzs: the adaptation phase (setting adaptation, in iterations) was counted in generations, so with the default 0.2 it covered 60 % (DREAMzs with 3 chains) or 80-100 % (DREAM) of the run instead of 20 %
- DREAM: with few chains, the second chain of a difference pair could be drawn from the wrong set, e.g. the current chain
- DEzs: zUpdateFrequency > 1 stopped with "subscript out of bounds" when the number of generations was a multiple of zUpdateFrequency (#299)
- runMCMC(): a new run with settings = out$settings added the old runtime and kept the old sessionInfo, and continuing a run with several chains gave every chain the runtime of the first (#152)
Major changes
- runMCMC(): runtime and sessionInfo moved from out$settings to out$info (#152)
- DREAM, DREAMzs: the jump rate is now f / sqrt(2 * DEpairs * d) as in Vrugt et al. (2009), with the new setting f = 2.38 (before, jumps were sqrt(2) times larger); the multiplicative term e is drawn for each updated parameter from U(-e, e) instead of being a constant factor 1 + e. The setting gamma was never used and now gives a warning (#192)
- DEzs: the setting eps was never used and is removed; the help explains eps.mult and eps.add (#223)
Minor changes
- runMCMC(sampler = "Twalk") no longer warns that the Twalk is discouraged because of numeric instability, as the cause was fixed (#67).
- likelihoodAR1(): the help now states that sd is the innovation sd, not the marginal sd (#259).
- Vignette InterfacingAModel: new example for running several MCMCs on parallel workers with a likelihood factory (#275).
BayesianTools 0.1.9 (2026-03-10)
This is a maintenance release to make BT compatible with new CRAN policies
Bugfixes
- fixes lost braces issue https://github.com/florianhartig/BayesianTools/issues/278
Minor changes
- Help improvements and clarifications
BayesianTools 0.1.8 (2023-01-30)
This release was necceessary to make BT compatible with new CRAN policies, in particular a switch to HTML5 for documentation pages
Bugfixes
- fixes HTML validation problems connected to the recent switch to HTML5 for documentation pages in R 4.2 https://github.com/florianhartig/BayesianTools/issues/240.
- fixes detritus problems under Windows dev, which, after a long search, turned up to be caused by some stray parallel notes https://github.com/florianhartig/BayesianTools/issues/244
Minor changes
- Help improvements and clarifications
BayesianTools 0.1.7 (2019-12-09)
The release was neccessary because of a change to CRAN, see https://github.com/florianhartig/BayesianTools/issues/191
Bugfixes
- fixed HTML validation problems due to the recent switch to HTML5 for documentation pages in R 4.2.0, see also https://github.com/florianhartig/BayesianTools/issues/240
- some other small bugfixes
BayesianTools 0.1.6 (2019-01-21)
New features
- calibrationTest + helper functions to test for https://github.com/florianhartig/BayesianTools/pull/172
Major changes
Minor changes
- Help improvements and clarifications
Bugfixes
- Bugfix AR1 likelihood https://github.com/florianhartig/BayesianTools/issues/169
- Bugfix restart MCMC https://github.com/florianhartig/BayesianTools/issues/158
- bugfix for new behavior of class(matrix) in CRAN devel, see https://github.com/florianhartig/BayesianTools/issues/191
BayesianTools 0.1.5 (2018-07-16)
Changes / improvements
- marginalPlot changed / updated
Minor changes
- getSample behavior https://github.com/florianhartig/BayesianTools/issues/133
- Create a check of start values / check matrix at the runMCMC level https://github.com/florianhartig/BayesianTools/issues/114
Bugfixes:
- Removed package dependency in unit tests https://github.com/florianhartig/BayesianTools/issues/136
- Bugfix in bridge sampling https://github.com/florianhartig/BayesianTools/issues/121
- Missing -Inf -> - Inf check in DEzs and DREAMzs with parallel = T https://github.com/florianhartig/BayesianTools/issues/113
BayesianTools 0.1.4 (2017-12-20)
Compatibility
- added NIMBLE support to getSample and plotting functions
- added coda support to plotTimeSeriesResults and plotMarginals
Changes
- IMPORTANT: added a warning when calling runMCMC with the "twalk" sampler. At the moment, using this sampler is discouraged
- marginalPlot can now plot prior and/or posterior, either as histogram or as violin plots
- added bridge sampling to marginalLikelihood
- added shortcuts for AM, DR and DRAM samplers
Bugfixes:
- when calling getSample on mcmcSamplerList, the chains are now merged instead of concatenated
- formulas in the vignette are now rendered correctly
- fixed a bug in VSEM help
Minor Changes:
- changed the ordering of the summary metrics of summary.mcmcSampler, and summary.mcmcSamplerList
- renamed marginalLikelihood output to "ln.ML"
- added tests for plotTimeSeriesResults, marginalPlot and marginalLikelihood
- added an example with restart to DEzs
BayesianTools 0.1.3 (2017-08-02)
Compatibility
- created compatibility to new Rcpp standard
Changes
- getSample extended to coda objects, so that all plot functions can also be used on coda objects
- plotTimeSeriesResults now includes the option to create residual plots from posterior predictive simulations, calling the DHARMa package
- added new utitility functions sampleEquallySpaced and correctThin
Bugfixes
- IMPORTANT: fixed a bug in createPriorDensity - results with createPriorDensity prior to this bugfix may be unrealiable
- getSample now corrects wrong inputs for thin and numSamples instead of throwing an error
- smaller bugfixes in plot functions
BayesianTools 0.1.2 (2017-05-27)
Bugfixes
- various smaller improvement / bugfixes in getSample, plot functions / Help (0.1.2)
- warnings / bugfixes associated to burnin arguments (0.1.1.2)
- bugfix in marginal plots (0.1.1.1)
BayesianTools 0.1.1 (2017-04-05)
Mostly a bugfix release
Minor changes
- implemented method for estimating posterior volume (0.1.0.1)
- implemented GOF (0.1.0.2)
Bugfixes
- removed erroneously created help files (0.1.0.1)
- dynload change to conform to R 3.4.x requirements (0.1.1)
- smaller bugxfixes and help updates (0.1.1)
BayesianTools 0.1.0 (2017-02-05)