Giter Site home page Giter Site logo

Comments (2)

rmcelreath avatar rmcelreath commented on August 24, 2024

Yeah good point. It's an awkward problem either way, given that typed variables are not so natural to so many students. I could give your idea about %*% a try. Should we easy to add a check for uncormforbale objects while the linear model is parsed.

from rethinking.

wesleyburr avatar wesleyburr commented on August 24, 2024

Update on this: I asked the students to try to use ulam() this week, and ran into a similar issue. It seems like the way you parse the formulas into Stan code is a bit different for ulam() [seems = it is, as you clearly state in the docs, because of the more powerful support for GLMMs and other features].

In an ulam() call, setting the start values is insufficient to properly set up the vector size for the parameters for a smooth function. The workaround I found is to manually drop into Stan-like syntax and pre-pend the prior statements for those particular (vector) priors, e.g., vector[9]:w ~ rnorm(0, 1) instead of the more textbook-described w ~ rnorm(0, 1), where the parser takes care of it.

I have some students who seem to like to push the boundaries ....

from rethinking.

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.