Skip to content

Commit 5a470f2

Browse files
committed
Update doctests
1 parent 0d5f182 commit 5a470f2

File tree

3 files changed

+16
-16
lines changed

3 files changed

+16
-16
lines changed

ext/InferenceObjectsPosteriorStatsExt/loo.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ julia> idata = load_example_data("centered_eight");
1919

2020
julia> loo(idata)
2121
PSISLOOResult with estimates
22-
elpd elpd_mcse p p_mcse
23-
-31 1.4 0.9 0.33
22+
elpd se_elpd p se_p
23+
-31 1.4 0.9 0.33
2424

2525
and PSISResult with 500 draws, 4 chains, and 8 parameters
2626
Pareto shape (k) diagnostic values:

ext/InferenceObjectsPosteriorStatsExt/summarize.jl

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ julia> data = load_example_data("centered_eight");
3333

3434
julia> summarize(data)
3535
SummaryStats
36-
mean std hdi_3% hdi_97% mcse_mean mcse_std ess
37-
mu 4.2 3.3 -1.61 10.3 0.21 0.088
38-
theta[Choate] 6.4 5.9 -3.68 17.9 0.25 0.20
39-
theta[Deerfield] 5.0 4.9 -4.98 13.4 0.21 0.15
40-
theta[Phillips Andover] 3.4 5.4 -7.54 12.9 0.23 0.17
41-
theta[Phillips Exeter] 4.8 5.2 -5.11 14.1 0.21 0.21
42-
theta[Hotchkiss] 3.5 4.8 -6.12 12.0 0.25 0.15
43-
theta[Lawrenceville] 3.7 5.2 -6.50 12.7 0.22 0.21
44-
theta[St. Paul's] 6.5 5.2 -2.67 16.9 0.22 0.15
45-
theta[Mt. Hermon] 4.8 5.7 -5.97 15.4 0.24 0.23
46-
tau 4.3 3.0 0.715 9.41 0.22 0.14
47-
3 columns omitted
36+
mean std eti94 ess_tail ess_bulk rhat
37+
mu 4.2 3.3 -2.11 .. 9.90 622 241 1.03
38+
theta[Choate] 6.4 5.9 -3.05 .. 19.1 937 572 1.01
39+
theta[Deerfield] 5.0 4.9 -4.49 .. 14.2 1214 532 1.01
40+
theta[Phillips Andover] 3.4 5.4 -8.17 .. 12.7 1017 511 1.01
41+
theta[Phillips Exeter] 4.8 5.2 -4.84 .. 14.5 911 572 1.01
42+
theta[Hotchkiss] 3.5 4.8 -6.11 .. 12.0 789 347 1.02
43+
theta[Lawrenceville] 3.7 5.2 -6.62 .. 12.6 957 506 1.01
44+
theta[St. Paul's] 6.5 5.2 -2.38 .. 18.3 1031 528 1.01
45+
theta[Mt. Hermon] 4.8 5.7 -5.52 .. 16.0 1045 538 1.01
46+
tau 4.3 3.0 1.06 .. 11.5 214 128 1.03
47+
2 columns omitted
4848
```
4949

5050
Compute the mean, standard deviation, median, and median absolute deviation of the `theta`

ext/InferenceObjectsPosteriorStatsExt/waic.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ julia> idata = load_example_data("centered_eight");
1919

2020
julia> waic(idata)
2121
WAICResult with estimates
22-
elpd elpd_mcse p p_mcse
23-
-31 1.4 0.9 0.32
22+
elpd se_elpd p se_p
23+
-31 1.4 0.9 0.32
2424
```
2525
"""
2626
function PosteriorStats.waic(

0 commit comments

Comments
 (0)