Giter Site home page Giter Site logo

Comments (2)

rmcelreath avatar rmcelreath commented on July 22, 2024

There are a couple of issues here.

The first is that, no, sim doesn't know how to reconstruct the interaction terms using model matrix. I haven't invested enough time in glimmer. The support tools like link and sim don't know it exists and so can't handle its foibles.

The second is that you've actually stumbled onto an interesting bug with how map objects work. Because of the glimmer naming convention, map is mistaking the interaction parameter name for a vector of parameters, due to the weird abstraction layer that I coded into it, so one can do vectors of coefficients with optim. I'll put this on the fix list.

Thanks.

from rethinking.

puterleat avatar puterleat commented on July 22, 2024

Ah thanks... I had actually been puzzled but he "b_" in front of the variable name, but that makes more sense.

As feedback, I really like using glimmer as a starting point for building models and would love to see it polished so it fits together with link and sim – although I can see how much time that would take. In the shorter term if the functions for creating the dataset that glimmer uses were pulled out and made accessible then it would be nice to be able to use them manually when running sim, so this might then be possible:

preds <- make_data_and_munge_names_function_from_glimmer(expand.grid(x=-1:1, z=-1:1))
sim(lm2.fit, data=preds)

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.