You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 21, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+17-21Lines changed: 17 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,6 @@ SR2TuringPluto is a Julia project that uses Pluto notebooks for this purpose. Ea
7
7
8
8
This Julia project uses Turing as the underlying mcmc implementation. A companion project ( [SR2StanPluto.jl](https://github.com/StatisticalRethinkingJulia/SR2StanPluto.jl) ) uses Stan.
9
9
10
-
**Note: A new version (v5.0.0) is under development. This is a breaking version. Probably safe to stick with tagged version 4.0.3 until then.**
11
-
12
10
## Installation
13
11
14
12
To (locally) reproduce and use this project, do the following:
@@ -25,23 +23,12 @@ If you want a specific tagged version, use:
25
23
```
26
24
$ git tag -l # To see available tags, followed by:
27
25
$ git checkout tags/<tag_name> # or simply:
28
-
$ git checkout v4.0.3
26
+
$ git checkout v4.5.0
29
27
```
30
28
31
-
and in the Julia REPL:
32
-
33
-
```
34
-
julia> ] # Actvate Pkg mode
35
-
(@v1.8) pkg> activate . # Activate pkg in .
36
-
(SR2TuringPluto) pkg> instantiate # Install in pkg environment
Select a notebook in the `open a file` entry box, e.g. type `./` and step to `./notebooks/TuringGuide.jl`.
59
46
60
47
SR2TuringPluto.jl is a DrWatson project, with some added/re-purposed subdirectories,
61
48
62
49
The `data` directory, in DrWatson accessible through `datadir()`, can be used for locally generated data, exercises, etc. All "rethinking" data files are stored and maintained in StatisticalRethinking.jl and can be accessed via `sr_datadir(...)`.
63
50
64
-
The scripts in the `scripts` subdirectory are directly generated from the notebooks and thus adhere to Pluto's programming restrictions.
65
-
66
51
This leads to a typical set of opening lines in each notebook:
67
52
```
68
53
using Pkg, DrWatson
@@ -85,7 +70,7 @@ df = df[df.age .>= 18, :]
85
70
86
71
## Naming of models and results:
87
72
88
-
1. ppl5_1 or m5_1 : Turing model
73
+
1. ppl5_1 : Turing model
89
74
1. m5_1t : The instantiated Turing model (includes data)
90
75
91
76
Chain(s):
@@ -101,27 +86,38 @@ Results as a DataFrame:
101
86
102
87
As before, the `t` at the end of the model number indicates Turing.
103
88
89
+
**Note**: Naming is not yet consistent through all notebooks. Work in progress!
90
+
104
91
## Status
105
92
106
93
SR2TuringPluto.jl is compatible with the 2nd edition of the book.
107
94
108
95
StructuralCausalModels.jl and ParetoSmoothedImportanceSampling.jl are included as experimental dependencies in the StatisticalRethinking.jl v3 package. Definitely work in progress!
109
96
97
+
Max Lapan added a package Dagitty.jl which coversoptions similar as available in StructuralCausalModels.jl. There is also a new package, ParetoSmooth.jl which overlaps with ParetoSmoothedImportanceSampling.jl.
98
+
As terminology differs from the terminology used in the Statistical Rethinking book, I have not used this package in the notebooks (yet?).
99
+
100
+
**Note: A new version (v5.0.0) is under development. This is a breaking version. Probably safe to stick with tagged version 4.0.3 until then.**
101
+
110
102
Any feedback is appreciated. Please open an issue.
111
103
112
104
## Acknowledgements
113
105
114
106
Of course, without the excellent textbook by Richard McElreath, this package would not have been possible. The author has also been supportive of this work and gave permission to use the datasets.
115
107
116
-
This repository and format is derived from work by Max Lapan, Karajan, previous and Stan versions of StatisticalRethinking.jland many other contributors.
108
+
This repository is derived from work by Max Lapan, Karajan, previous and current Stan versions of StatisticalRethinking.jl. It has been improved through comments and suggestions of many other contributors.
117
109
118
110
## Versions
119
111
120
112
### Version 5.0.0 (Under development, will take time)
121
113
122
114
1. Complete overhaul.likely using Makie.jl, Graphs.jl and more.
123
115
2. Larger notebooks.
124
-
3. Dropped additional figures in early chapters. r
116
+
3. Dropped additional figures in early chapters.
117
+
118
+
### Version 4.5.0
119
+
120
+
1. Adapted chapters 5 to 14 to an initial Pluto format.
0 commit comments