Giter Site home page Giter Site logo

Comments (4)

rmcelreath avatar rmcelreath commented on July 16, 2024 1

Since map2stan is no longer supported, and the code in the 1st edition is for map2stan, you are going to have some problems. You can't just replace map2stan with ulam unfortunately.

from rethinking.

rmcelreath avatar rmcelreath commented on July 16, 2024

I don't know what's wrong on your end, but this works fine for me:

m <- ulam(
  alist(
    height ~ dnorm( mu , sigma ) ,
    mu <- a + bl*leg_left + br*leg_right ,
    a ~ dnorm( 10 , 100 ) ,
    bl ~ dnorm( 2 , 10 ) ,
    br ~ half_normal(1, 10),
    sigma ~ dcauchy( 0 , 1 )
  ),
  data=d, chains=4, cores=4 , log_lik = TRUE)

from rethinking.

szmoe avatar szmoe commented on July 16, 2024

Thank you for the reply. I can run the model and get the precis output, but other than that, I can't do a thing- can't compute waic or do traceplots, etc. So, I have been using brms for the chapter at the moment.

Not sure if it is related but I did this https://discourse.mc-stan.org/t/problem-with-cmdstan-unpacking/29041/5 to get ulam() to work on my Rstudio. Other than that, I followed the book. But, I am using 1st edition of the book, so maybe I miss some new snippets here and there for it to work. Thank you very much.

from rethinking.

szmoe avatar szmoe commented on July 16, 2024

Got it! I will do the exercises with brms at the moment and will try this again when I can get the new edition. Thank you very much :)

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.