This is an attempt to re-code the homework from the 2nd edition of Statistical Rethinking by Richard McElreath using R-INLA.

Solutions to the homework exercises using the rethinking package are provided for comparison.

**Resources used for this work:**

Homework Solutions of Statistical Rethinking by Richard McElreath

Bayesian inference with INLA by Virgilio Gómez-Rubio

- INLA linear regression examples:

https://people.bath.ac.uk/jjf23/brinla/chicago.html

https://haakonbakka.bitbucket.io/btopic112.html

- INLA binomial examples:

https://rpubs.com/corey_sparks/431920

- INLA poisson examples:

https://www.flutterbys.com.au/stats/tut/tut12.10.html#h2_16

- INLA single random effect examples:

https://people.bath.ac.uk/jjf23/inla/oneway.html

https://people.bath.ac.uk/jjf23/brinla/reeds.html

- INLA correlated slope and intercept examples:

https://rpubs.com/corey_sparks/431920

https://groups.google.com/g/r-inla-discussion-group/c/iQELaQF8M9Q

- INLA missing data and imputation examples:

https://becarioprecario.bitbucket.io/inla-gitbook/ch-missing.html#sec:missresp

- INLA measurement error examples: