Skip to content

Commit

Permalink
Last updates 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
florianhartig committed Aug 1, 2017
1 parent 9c8e3ec commit 6e0908a
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 11 deletions.
4 changes: 2 additions & 2 deletions BayesianTools/DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: BayesianTools
Title: General-Purpose MCMC and SMC Samplers and Tools for Bayesian Statistics
Version: 0.1.2.1
Date: 2017-05-28
Version: 0.1.3
Date: 2017-08-01
Authors@R: c(person("Florian", "Hartig", email = "florian.hartig@biologie.uni-regensburg.de", role = c("aut", "cre")), person("Francesco", "Minunno", role = c("aut")), person("Stefan", " Paul", role = c("aut") ), person("David", "Cameron", role = "ctb"))
Author: Florian Hartig [aut, cre],
Francesco Minunno [aut],
Expand Down
9 changes: 2 additions & 7 deletions BayesianTools/NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,14 @@ NOTE: for more news about the package, see https://github.com/florianhartig/Baye
Changes

- getSample extended to coda objects, so that all plot functions can also be used on coda objects

- getSample now corrects wrong inputs for thin and numSamples instead of throwing an error

- plotTimeSeriesResults now includes the option to create residual plots from posterior predictive simulations, calling the DHARMa package

- added new utitility functions sampleEquallySpaced and correctThin

- added manual tests for getSample and automated tests for new utitlity functions

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

Expand Down
7 changes: 6 additions & 1 deletion BayesianTools/inst/examples/VSEMHelp.R
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ out <- runMCMC(bayesianSetup = bayesianSetup, sampler = "DEzs", settings = setti

plot(out)
summary(out)
marginalPlot(out, scale = T)
gelmanDiagnostics(out) # should be below 1.05 for all parameters to demonstrate convergence

# Posterior predictive simulations
Expand Down Expand Up @@ -85,7 +86,11 @@ plotTimeSeriesResults(sampler = out, model = createPredictions, observed = refer


########################################################
# demonstrating the updating of the prior
# Demonstrating the updating of the prior from old posterior
# Note that it is usually more exact to rerun the MCMC
# with all (old and new) data, instead of updating the prior
# because likely some information is lost when approximating the
# Posterior by a multivariate normal

settings <- list(iterations = 5000, nrChains = 2)

Expand Down
7 changes: 6 additions & 1 deletion BayesianTools/man/VSEM.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6e0908a

Please sign in to comment.