Giter VIP home page Giter VIP logo

Comments (3)

nk027 avatar nk027 commented on September 15, 2024

It makes sense to provide a method for coda::mcmc, that (at the very least) adds the hyperparameters. This may include coda::mcmc.list for multiple chains (including a check whether the chains are comparable).

Other possible methods for:
mcpar, nchain, niter, and nvar.

We should also look into adding betas.

from bvar.

nk027 avatar nk027 commented on September 15, 2024

Looks very nice so far!

Betas are now also added. I've also moved the data preparation (which is the same across as.mcmc, density and plot to its own function in 15_prep_data.R. I think the other methods can be put off for now, as they're available after converting to coda.

from bvar.

nk027 avatar nk027 commented on September 15, 2024

Okay note that there's some considerations regarding the use of coda.

We provide two methods for as.mcmc(), but do not really want to import+export it. Before we bypassed that by exporting the methods as (weird) functions, which seemed to work. Now there seems to be an issue with that under Windows, which surfaced when testing the vignette. Apparently the functions are not always recognised as methods, which means that as.mcmc produces some abomination out 'bvar' objects.

It seems like this can be bypassed / fixed in a reasonable way by dynamically registering these functions - i.e. if coda is loaded, or as soon as it is. This is done in zzz.R and was inspired by the hms package.

from bvar.

Related Issues (20)

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.