Coder Social home page Coder Social logo

Comments (2)

bob-carpenter avatar bob-carpenter commented on May 26, 2024

I agree --- that's very useful because that's where the sampling's
actually happening.

  • Bob

On Mar 28, 2015, at 3:32 PM, bgoodri [email protected] wrote:

The various plots should have an checkbox to utilize the parameters in the unconstrained space. These can be obtained with something like

pars <- extract(stanfit, permuted = FALSE, inc_warmup = maybe)
skeleton <- get_inits(stanfit)[[1]]
upars <- apply(pars, 1:2, FUN = function(theta) {
unconstrain_pars(stanfit, relist(theta, skeleton))
})
upars <- aperm(upars, c(2,3,1))
dimnames(upars) <- c(dimnames(pars)[1:2], list(parameters =
head(dimnames(pars)[[3]], dim(upars)[3])))


Reply to this email directly or view it on GitHub.

from shinystan.

jgabry avatar jgabry commented on May 26, 2024

I also agree. Right now in the unreleased development version there are text boxes that allow you to specify an arbitrary transformation by entering the body of an R function (e.g. to log transform you just need to type log(x) not function(x) log(x)). So you can tell it to transform to the unconstrained space if you know what the right transformation is. You can do this for the density, histogram, bivariate scatterplot, and trivariate 3D scatterplot on the Explore page. This will be included in v1.1.0 soon which I'm almost ready to tag and release.

For v1.2.0 I can go the extra step and implement what you're suggesting here. I think it should still allow the user to enter whatever transformation they want, but also give the option to use the transformation to the unconstrained space that was used by Stan.

from shinystan.

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.