Skip to content
This repository has been archived by the owner on Sep 10, 2023. It is now read-only.

Latest commit

 

History

History
100 lines (82 loc) · 4.11 KB

index.md

File metadata and controls

100 lines (82 loc) · 4.11 KB

+++ title = "StatisticalRethinkingJulia/TuringModels.jl" tags = ["home", "bayesian statistics"] +++

This site shows the Julia versions of the Bayesian models described in Statistical Rethinking Edition 1 (McElreath, \citet{McElreath2016}) and 2 (McElreath, \citet{McElreath2020}). The models are listed at Models.

We have tried our best to let this site be without mistakes. However, if you find a mistake on this website, please let us know. The code for this website is available on GitHub.

\toc

Version

# hideall
println(VERSION)

This website is built with Julia \textoutput{version} and

# hideall
import Pkg

deps = [pair.second for pair in Pkg.dependencies()]
deps = filter(p -> p.is_direct_dep, deps)
deps = filter(p -> !isnothing(p.version), deps)
list = ["$(p.name) $(p.version)" for p in deps]
sort!(list)
println(join(list, '\n'))

\output{packages}

Models

The models are listed below. Each page aims to contain all the code required to reproduce the results. In other words, it should be possible to get the same output by just copying the code and the accompanying dataset. Furthermore, we try to stick to Julia styling conventions where possible. Therefore, we use unicode symbols in the models. For example, where the book lists alpha, we will use α because the Julia language allows that. As another example, we call DataFrame variables df, which is also the convention in R and Python.

Before you look at the models below, you might want to look at the Basic Example.

2nd Edition (2020)

  • globe.qa: Globe tossing
  • m4.1: Gaussian model of height
  • m8.1: Africa first candidate model
  • m12.1: Beta-binomial
  • m13.1: Varying intercepts Reedfrogs
  • m13.1: Varying slopes cafes
  • m13.2: Multinomial Poisson regression
  • m13.3: Varying intercepts admission decisions

1st Edition (2016)

  • m2.1: Globe tossing
  • m4.1: Gaussian model of height
  • m8.1: Africa
  • m8.2: Wild chain
  • m8.3: Weakly informative priors
  • m8.4: Non-identifiable model
  • m10.3: Chimpanzees
  • m10.4: Estimate handedness for each Chimpanzee
  • m10.10: Oceanic tool complexity
  • m10.10c: Centered Oceanic tool complexity
  • m10.yyt: Admit or reject
  • m10.good: Nonsense estimates for strong associations
  • m11.5: Beta-binomial
  • m11.7: Multinomial Poisson regression
  • m12.1: Varying intercepts Reedfrogs
  • m12.2: Multilevel Reedfrogs
  • m12.3: Partial-pooling estimates
  • m12.4: Varying intercepts Chimpanzees
  • m12.5: Multi-multilevel Chimpanzees
  • m12.6: Over-dispersed Oceanic
  • m13.4: Ignoring gender for admittance
  • m13.6: Multivariate Chimpanzees priors
  • m13.6nc: Non-centered Chimpanzees
  • m13.7: Spatial autocorrelation in Oceanic tools
  • m14.1: Varying slopes cafes

References

\biblabel{McElreath2016}{2016} McElreath, R. (2016). Statistical Rethinking: A Bayesian Course with Examples in R and Stan. CRC press. https://doi.org/10.1201/9781315372495

\biblabel{McElreath2020}{2020} McElreath, R. (2020). Statistical Rethinking: A Bayesian Course with Examples in R and Stan. CRC press. https://doi.org/10.1201/9780429029608