Results: 05_mcmc_diag_demo.sas
The data are taken from Crowder (1978). The Seeds data set is a factorial layout, with two types of seeds, O. aegyptiaca 75 and O. aegyptiaca 73, and two root extracts, bean and cucumber. You observe r, which is the number of germinated seeds, and n, which is the total number of seeds. The independent variables are seed and extract.
The Print Procedure
Data Set WORK.SEEDS
| 10 |
39 |
0 |
0 |
1 |
| 23 |
62 |
0 |
0 |
2 |
| 23 |
81 |
0 |
0 |
3 |
| 26 |
51 |
0 |
0 |
4 |
| 17 |
39 |
0 |
0 |
5 |
| 5 |
6 |
0 |
1 |
6 |
| 53 |
74 |
0 |
1 |
7 |
| 55 |
72 |
0 |
1 |
8 |
| 32 |
51 |
0 |
1 |
9 |
| 46 |
79 |
0 |
1 |
10 |
| 10 |
13 |
0 |
1 |
11 |
| 8 |
16 |
1 |
0 |
12 |
| 10 |
30 |
1 |
0 |
13 |
| 8 |
28 |
1 |
0 |
14 |
| 23 |
45 |
1 |
0 |
15 |
| 0 |
4 |
1 |
0 |
16 |
| 3 |
12 |
1 |
1 |
17 |
| 22 |
41 |
1 |
1 |
18 |
| 15 |
30 |
1 |
1 |
19 |
| 32 |
51 |
1 |
1 |
20 |
| 3 |
7 |
1 |
1 |
21 |
The Contents Procedure
WORK.SEEDS
Attributes
| WORK.SEEDS |
21 |
| DATA |
5 |
| V9 |
0 |
| 12/05/2018 00:24:23 |
40 |
| 12/05/2018 00:24:23 |
0 |
| |
CHAR |
| |
NO |
| |
YES |
| HP_UX_64, RS_6000_AIX_64, SOLARIS_64, HP_IA64 |
NO |
| latin1 Western (ISO) |
|
Engine/Host Information
| 65536 |
| 2 |
| 0 |
| /saswork/SAS_work8C54000006EE_sp20635/SAS_workEA33000006EE_sp20635/seeds.sas7bdat |
| 9.0401M5 |
| SunOS |
| 5920 |
| rw-r--r-- |
| t844523 |
| 192KB |
| 196608 |
Varnum
| r |
Num |
8 |
| n |
Num |
8 |
| seed |
Num |
8 |
| extract |
Num |
8 |
| ind |
Num |
8 |
The MCMC Procedure
Number of Observations
Parameters
| Conjugate |
1.0000 |
igamma(0.01, s=0.01) |
| N-Metropolis |
0 |
general(0) |
| |
0 |
general(0) |
| |
0 |
general(0) |
| |
0 |
general(0) |
Random-Effects Parameters
| N-Metropolis |
ind |
21 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 ... |
normal(w, var=s2) |
Posterior Statistics
Summary and Interval Statistics
| 20000 |
-0.5570 |
0.1929 |
-0.9422 |
-0.1816 |
| 20000 |
0.0776 |
0.3276 |
-0.5690 |
0.7499 |
| 20000 |
1.3667 |
0.2923 |
0.8463 |
1.9724 |
| 20000 |
-0.8469 |
0.4718 |
-1.7741 |
0.0742 |
| 20000 |
0.1171 |
0.0993 |
0.00163 |
0.3045 |
Convergence Diagnostics
Monte Carlo Standard Errors
| 0.0101 |
0.1929 |
0.0523 |
| 0.0175 |
0.3276 |
0.0533 |
| 0.0138 |
0.2923 |
0.0472 |
| 0.0269 |
0.4718 |
0.0570 |
| 0.00417 |
0.0993 |
0.0419 |
Autocorrelations
| 0.9483 |
0.7800 |
0.6236 |
0.1669 |
| 0.9598 |
0.8264 |
0.6929 |
0.1694 |
| 0.9290 |
0.7108 |
0.5312 |
0.1070 |
| 0.9646 |
0.8450 |
0.7234 |
0.2149 |
| 0.7494 |
0.5823 |
0.4598 |
0.0969 |
Geweke Diagnostics
| 1.1428 |
0.2531 |
| -1.2485 |
0.2118 |
| 0.3081 |
0.7580 |
| -0.2146 |
0.8300 |
| -0.6170 |
0.5373 |
Raftery-Lewis Diagnostics
| 35 |
37938 |
3746 |
10.1276 |
| 51 |
55996 |
3746 |
14.9482 |
| 32 |
33938 |
3746 |
9.0598 |
| 44 |
47893 |
3746 |
12.7851 |
| 153 |
162690 |
3746 |
43.4303 |
Heidelberger-Welch Diagnostics
| 0.1114 |
0.5316 |
Passed |
0 |
0.0216 |
-0.5570 |
-0.0387 |
Passed |
| 0.0930 |
0.6202 |
Passed |
0 |
0.0352 |
0.0776 |
0.4538 |
Failed |
| 0.0942 |
0.6139 |
Passed |
0 |
0.0298 |
1.3667 |
0.0218 |
Passed |
| 0.0887 |
0.6429 |
Passed |
0 |
0.0561 |
-0.8469 |
-0.0662 |
Passed |
| 0.0536 |
0.8539 |
Passed |
0 |
0.00876 |
0.1171 |
0.0748 |
Passed |
Effective Sample Sizes
| 366.1 |
54.6309 |
0.0183 |
| 351.6 |
56.8820 |
0.0176 |
| 449.1 |
44.5309 |
0.0225 |
| 308.1 |
64.9051 |
0.0154 |
| 568.5 |
35.1815 |
0.0284 |
Diagnostic Plots
beta0
beta1
beta2
beta3
s2
The Print Procedure
Data Set WORK.GELMANRUBIN
| 0.4864 |
0.0419 |
1.0692 |
1.0595 |
beta0 |
| 0.6238 |
0.1406 |
1.0352 |
1.0348 |
beta1 |
| 0.2313 |
0.1101 |
1.0389 |
1.0418 |
beta2 |
| 1.5103 |
0.2837 |
1.0395 |
1.0380 |
beta3 |
| . |
. |
. |
. |
|