Overview
This document reports posterior model checks for the four shifted
lognormal mixed-effects mixture models. The checks use the saved Stan
fit objects in stanout/smog_exp*.rda. These files are RDS
objects despite the .rda extension and are read with
readRDS(). They are large, so the document loads and checks
one experiment at a time.
Diagnostics by
Experiment
Experiment 1
HMC
diagnostics
Experiment 1 HMC diagnostics by chain.
| 1 |
0 |
0 |
0.735 |
0.993 |
0.0201 |
| 2 |
0 |
0 |
0.738 |
0.984 |
0.0300 |
| 3 |
0 |
0 |
0.818 |
0.992 |
0.0215 |
R-hat and effective
sample size
Experiment 1 summary of R-hat and effective sample
size.
| 17 |
1.007 |
0 |
0 |
658 |
0 |
Experiment 1 parameters with the largest R-hat
values.
| beta[2] |
5.200 |
0.040 |
658 |
1.007 |
| sigma_u[1] |
0.311 |
0.030 |
1276 |
1.006 |
| beta[1] |
5.941 |
0.055 |
1312 |
1.003 |
| shift |
6.514 |
0.034 |
1198 |
1.003 |
| sigma_diff[2] |
0.194 |
0.007 |
7989 |
1.002 |
| sigma |
0.552 |
0.009 |
5092 |
1.001 |
| theta[6] |
-1.283 |
0.112 |
5941 |
1.001 |
| theta[2] |
-1.512 |
0.126 |
6112 |
1.001 |
| theta[4] |
-1.399 |
0.121 |
5843 |
1.001 |
| theta[3] |
-1.197 |
0.190 |
6193 |
1.000 |
| theta[5] |
0.173 |
0.197 |
6376 |
1.000 |
| theta[1] |
0.593 |
0.225 |
6372 |
1.000 |
| delta[2] |
0.267 |
0.029 |
6994 |
1.000 |
| sigma_diff[1] |
0.143 |
0.013 |
9058 |
1.000 |
| sigma_u[2] |
0.243 |
0.024 |
2296 |
1.000 |
| sigma_w |
0.091 |
0.009 |
11623 |
1.000 |
| delta[1] |
0.703 |
0.039 |
8052 |
1.000 |
Traceplots
Posterior
predictive checks
Experiment 2
HMC
diagnostics
Experiment 2 HMC diagnostics by chain.
| 1 |
0 |
0 |
0.801 |
0.985 |
0.0326 |
| 2 |
0 |
0 |
0.817 |
0.986 |
0.0310 |
| 3 |
0 |
0 |
0.792 |
0.982 |
0.0374 |
R-hat and effective
sample size
Experiment 2 summary of R-hat and effective sample
size.
| 37 |
1.006 |
0 |
0 |
570 |
0 |
Experiment 2 parameters with the largest R-hat
values.
| beta[3] |
5.206 |
0.040 |
570 |
1.006 |
| beta[1] |
6.109 |
0.048 |
817 |
1.004 |
| beta[2] |
6.026 |
0.053 |
1029 |
1.003 |
| sigma_u[2] |
0.222 |
0.019 |
2978 |
1.001 |
| sigma_u[1] |
0.367 |
0.028 |
1185 |
1.001 |
| shift |
6.483 |
0.029 |
1495 |
1.001 |
| theta[15] |
-0.146 |
0.295 |
13737 |
1.000 |
| theta[5] |
0.102 |
0.291 |
13944 |
1.000 |
| theta[21] |
-0.308 |
0.275 |
14624 |
1.000 |
| delta[1] |
0.427 |
0.044 |
12179 |
1.000 |
| theta[24] |
-1.108 |
0.131 |
16329 |
1.000 |
| sigma_diff[2] |
0.200 |
0.006 |
9855 |
1.000 |
| theta[3] |
-0.458 |
0.277 |
15417 |
1.000 |
| sigma |
0.562 |
0.007 |
6400 |
1.000 |
| theta[17] |
0.250 |
0.245 |
16046 |
1.000 |
| theta[11] |
-1.089 |
0.264 |
16153 |
1.000 |
| theta[4] |
-1.476 |
0.146 |
17952 |
1.000 |
| delta[2] |
0.599 |
0.058 |
16967 |
1.000 |
| theta[20] |
-1.310 |
0.136 |
17189 |
1.000 |
| theta[7] |
-0.238 |
0.263 |
15903 |
1.000 |
Traceplots
Posterior
predictive checks
Experiment 3
HMC
diagnostics
Experiment 3 HMC diagnostics by chain.
| 1 |
0 |
0 |
0.792 |
0.986 |
0.0332 |
| 2 |
0 |
0 |
0.748 |
0.985 |
0.0348 |
| 3 |
0 |
0 |
0.763 |
0.993 |
0.0249 |
R-hat and effective
sample size
Experiment 3 summary of R-hat and effective sample
size.
| 46 |
1.010 |
0 |
0 |
341 |
1 |
Experiment 3 parameters with the largest R-hat
values.
| sigma_u[1] |
0.318 |
0.023 |
830 |
1.010 |
| beta[3] |
5.204 |
0.031 |
341 |
1.009 |
| beta[1] |
6.228 |
0.043 |
580 |
1.006 |
| beta[2] |
6.207 |
0.041 |
582 |
1.006 |
| shift[1] |
6.821 |
0.025 |
1100 |
1.003 |
| shift[2] |
6.426 |
0.026 |
1196 |
1.003 |
| sigma_u[2] |
0.205 |
0.016 |
1917 |
1.001 |
| theta[6] |
-1.473 |
0.131 |
15976 |
1.000 |
| theta[9] |
1.087 |
0.394 |
6057 |
1.000 |
| sigma |
0.536 |
0.005 |
6626 |
1.000 |
| theta[1] |
0.620 |
0.310 |
10719 |
1.000 |
| theta[2] |
-1.272 |
0.132 |
15186 |
1.000 |
| theta[24] |
-1.204 |
0.124 |
15511 |
1.000 |
| theta[21] |
-0.936 |
0.217 |
13563 |
1.000 |
| theta[22] |
-1.020 |
0.128 |
13599 |
1.000 |
| theta[14] |
-1.558 |
0.146 |
15374 |
1.000 |
| theta[11] |
0.698 |
0.296 |
11463 |
1.000 |
| theta[8] |
-1.305 |
0.133 |
14688 |
1.000 |
| theta[27] |
-0.390 |
0.218 |
12381 |
1.000 |
| sigma_diff[2] |
0.175 |
0.004 |
11745 |
1.000 |
Traceplots
Posterior
predictive checks
Posterior predictive plots were skipped because the saved posterior
predictive draws do not match the reconstructed model data. This usually
means that the cleaning or aggregation script has changed since this
Stan fit was generated. Refit the model with the current data-processing
scripts to regenerate matching y_tilde draws.
Experiment 3 posterior predictive data check.
| n_mismatch |
30771 |
30762 |
Experiment 4
HMC
diagnostics
Experiment 4 HMC diagnostics by chain.
| 1 |
0 |
0 |
0.782 |
0.986 |
0.0300 |
| 2 |
0 |
0 |
0.781 |
0.995 |
0.0170 |
| 3 |
0 |
0 |
0.803 |
0.985 |
0.0311 |
R-hat and effective
sample size
Experiment 4 summary of R-hat and effective sample
size.
| 45 |
1.009 |
0 |
0 |
676 |
0 |
Experiment 4 parameters with the largest R-hat
values.
| beta[3] |
6.265 |
0.026 |
676 |
1.009 |
| beta[1] |
6.660 |
0.032 |
912 |
1.006 |
| beta[2] |
6.667 |
0.034 |
1041 |
1.005 |
| sigma_u[1] |
0.201 |
0.016 |
1273 |
1.003 |
| delta[1] |
0.238 |
0.020 |
17238 |
1.000 |
| sigma |
0.392 |
0.006 |
6016 |
1.000 |
| theta[1] |
0.017 |
0.237 |
14514 |
1.000 |
| sigma_diff[2] |
0.229 |
0.006 |
9276 |
1.000 |
| sigma_u[2] |
0.545 |
0.028 |
3879 |
1.000 |
| sigma_diff[1] |
0.166 |
0.006 |
11671 |
1.000 |
| theta[31] |
-0.487 |
0.219 |
14876 |
1.000 |
| shift |
5.442 |
0.077 |
1652 |
1.000 |
| theta[9] |
0.459 |
0.283 |
12047 |
1.000 |
| theta[25] |
-0.171 |
0.221 |
14536 |
1.000 |
| theta[28] |
-0.639 |
0.173 |
21959 |
1.000 |
| theta[14] |
-0.390 |
0.185 |
20966 |
1.000 |
| theta[8] |
-0.788 |
0.182 |
21841 |
1.000 |
| theta[5] |
0.006 |
0.223 |
15047 |
1.000 |
| theta[23] |
-0.980 |
0.240 |
11538 |
1.000 |
| theta[27] |
-0.031 |
0.226 |
14130 |
1.000 |
Traceplots