Survival model (Section 9.4)

WinBUGS code Weibull.odc

Weibull

Posterior means, posterior standard deviations and 95% credible intervals (Inference->Samples->stats)

Sample path (history)

Posterior probability densities (Inference->Samples->density)

(Further, right-click on the figure->Margins-> Special…->Smooth -> change from 0.2 to 0.1-> apply all)

Sample autocorrelation function (Inference->Samples->auto corr)

Running quantile plot (Inference->Samples->quantiles)

Scatter plots (Inference->Correlations…)

Survival probabilities for treat= 1 and age=60

(Inference-> Compare-> node:S, axis:t and click on modelfit)

(Further, right-click on the figure, Titles -> x-axis: time, y-axis: S(t))

95% intervals (blue) and median (red)