|
Bayesian Analysis of the SRM 1946 chlorinated data
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Introduction | The SRM 1946 chlorinated data, shown in Table 1, consists of means and standard deviations from multiple methods for 62 different compounds. It is of interest to calculate a consensus mean and a measure of uncertainty for each compound. The classical method of analysis is using the DATAPLOT consensus mean procedure. A Bayesian hierarchical model provides an alternative solution to this problem. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The Model |
For each compound i, there are several average values
and sample standard deviations .
We assume that
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| The BUGS Program |
The above model can be applied to the data given in Table 1 and
the consensus means can be estimated using statistical software
called
BUGS. This software performs Markov Chain Monte
Carlo simulation which results in a random sample of draws from
the posterior distributions of the .
This simulated sample is then used to give an estimate of the
consensus mean and a measure of the posterior precision. The
code for the BUGS program is as follows:
model pcb;
const
k=6;
var
theta[k],sigma[k],mu,tau,vb,Y[k],a,b, method[k],ss[k], dv[k], div[k],
sg2[k], pg2[k], gg2[k], df[k];
data method, Y, dv, ss in "summr.dat";
inits in "summrgen.in";
{ mu ~ dnorm(0, 1.0E-4);
tau ~ dgamma(1.0E-4, 1.0E-4);
b ~ dgamma(1.0E-4, 1.0E-4);
a ~ dexp(1.0);
for (i in 1:k) { theta[i] ~ dnorm(mu,tau);
}
for (i in 1:k) { sg2[i] ~ dgamma(a,b);
}
for (i in 1:k) {
div[i]<- (dv[i]*dv[i]);
df[i] <- (ss[i]-1)/2.;
pg2[i] <- df[i] * sg2[i];
gg2[i] <- ss[i] * sg2[i];
Y[i] ~ dnorm(theta[i], gg2[i]);
div[i] ~ dgamma(df[i], pg2[i]);
}
}
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Results | The results of the computations of the above program are given in Table 2. For each compound, the mean is given along with the standard deviation, the 95% HPD interval and the median of the posterior distribution. Each simulated sample is of size 1000. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Results Table |
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Date created: 9/20/2001 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| [ SED Home | Bayesian Home | Previous | Next ] |