Bayesian fitting packages #185
Replies: 5 comments 8 replies
-
I have found LaplacesDemon useful in the past but agree there doesn't seem to be a huge amount of development. |
Beta Was this translation helpful? Give feedback.
-
With kind of the same interface as adaptMCMC (same original author), I'm maintaining:
Both work with coda as well. |
Beta Was this translation helpful? Give feedback.
-
Thanks, will have a look. @dchodge and @thimotei also mentioned the following: Plus ptmc by @dchodge, which can also handle discrete spaces. Might be worth a head-to-head at some point, to identify key benefits/limitations - although I suppose if we're using for simple-ish use cases, shouldn't be too hard to switch between them if they've all got a reasonably plug-and-play interface. |
Beta Was this translation helpful? Give feedback.
-
Thanks all. Going to explore some comparisons in a draft .Rmd, partly just to get my head around what's available, with potential to turn into a vignette as a future advanced use case in Epiverse. Maybe using {epichains} likelihoods as a starting point as have quite a bit of cluster size distribution data floating around from previous projects/talks (unless you've already got something in progress @sbfnk @jamesmbaazam?) One thing I've noticed from an initial look at packages is that most put quite a simple adjustment for parameter positivity (i.e. set
|
Beta Was this translation helpful? Give feedback.
-
I've started a draft vignette on {epichains} to explore and compare options. {MCMCpack} and {BayesianTools} were pretty plug-and-play, but didn't manage to get the formatting of inputs right for {mcmcensemble} yet @Bisaloo. Also haven't got all the dependencies lined up for {greta}, so this also disabled in current .Rmd. Would be interested to hear thoughts/comments! |
Beta Was this translation helpful? Give feedback.
-
Do people have a preferred package when running MCMC (e.g. Metropolis Hastings) on a generic R function that takes a parameter vector and data.frame
fun(param, data)
, then returns a likelihood (e.g. like the likelihood functions in epichains, or a short script based on something else). So rather than a package likerstan
,rbi
orpomp
that has custom syntax for the model, something that takes an existing function as input.Have had a couple of situations where it's come up for collaborative projects where Epiverse functionality could be helpful, but thought it might be worth some alignment if these could potentially become vignettes at a later date.
A few options I've come across:
MCMCpack. Lots of functions and contributors and works with
coda
functions. Some example code below, although can't see capacity for adaptive MCMC.adaptMCMC. One core adaptive MCMC function.
LaplacesDemon. Widely used, but current maintenance structure unclear.
There's also some related discussion about posteriors in this quickfit issue.
Beta Was this translation helpful? Give feedback.
All reactions