BayesianTools icon indicating copy to clipboard operation
BayesianTools copied to clipboard

1-d MCMC outputs

Open florianhartig opened this issue 2 years ago • 1 comments

Based on #221 - check that all functions also work for 1-d MCMC outputs

florianhartig avatar Jul 09 '21 14:07 florianhartig

after fixing matrix subsetting in marginalLikelihood.R and plotMarginals.R functions should work for one parameter MCMC-samplers

tested with:

ll <- function(x) sum(dnorm(x, log = TRUE))
setup <- createBayesianSetup(ll, lower = -100, upper = 100)
out <- runMCMC(bayesianSetup = setup, sampler = x, settings = list(iterations=1000))

used "Metropolis", "AM", "DR", "DRAM", "DE", "DEzs", "DREAM", "DREAMzs", "Twalk" samplers as x

tested functions print, getSample, summary, plot, DIC, MAP, getVolume, marginalLikelihood, marginalPlot, tracePlot work for all samplers

WAIC, gelmanDiagnostics also work for samplers with multiple internal chains ("DE", "DEzs", "DREAM", "DREAMzs", "Twalk")

correlationPlot correctly exits with warning message:

Error in correlationPlot(out) : 
  BayesianTools::correlationPlot - using this function only makes sense if you have more than 1 parameter

RobertBosek avatar Jan 08 '22 16:01 RobertBosek