Giter VIP home page Giter VIP logo

comparemcmcs's Introduction

compareMCMCs

compareMCMCs is a package for running, managing, and comparing results from different MCMC packages. It was refactored from the nimble package as part of the release of nimble version 0.8.0.

The User Manual (aka package vignette) giving an overview of compareMCMCs can be viewed here.

Right now, compareMCMCs works with NIMBLE and JAGs models. We plan to add some additional features before releasing it on CRAN.

compareMCMCs allows you to configure a set of MCMCs to run and then automatically time them and process their results to generate html output with comparisons of efficiency and posterior distributions. This system started life as part of the nimble package. Although it is now a separate package, it remains somewhat nimble-centric.

Use of other MCMCs is supported by a plugin system. Plugins are provided for JAGS and will be provided for WinBUGS, OpenBUGS and Stan. Since nimble, JAGS, WinBUGS and OpenBUGS use different dialects of the same model language, it is sometimes possible to compare them using the same model code. It is possible to write new plugins for new MCMC packages fairly easily.

It is also possible to provide new comparison metrics and/or new figure components for html comparison pages.

In summary, compareMCMCs provides:

  • the doMCMCs function to run one or more MCMCs and manage the results;
  • the MCMCresult class to manage results by storing samples, timing information, metrics or summaries of performance, and other details;
  • a plugin systems to include new MCMC engines;
  • a plugin system for new metrics for comparison among MCMCs;
  • a system for generating html pages with figures from comparison metrics, including a plugin system to provide new page components;
  • partial backward compatibility to nimble's original MCMCsuite and compareMCMCs functions.

To install compareMCMCs from github (it is not currently on CRAN):

library(devtools)
install_github("nimble-dev/compareMCMCs", subdir = "compareMCMCs")

Or, of course, you can download and build the package, which is in directory compareMCMCs.

comparemcmcs's People

Contributors

perrydv avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.