Wednesday, July 10, 2013
Chapter 8
BUGS CODE 8.1
model;
{
# 4 readers
# ROC area
# melanoma example
# code is from Congdon
# non diseased
for(i in 1:30){for(j in 1:5){logit(ndgamma[i,j])<-ndtheta[j]-ndmu[i]}}
for(i in 1:30){ndp[i,1]<-ndgamma[i,1]}
for(i in 1:30){ndp[i,2]<-ndgamma[i,2]-ndgamma[i,1]}
for(i in 1:30){ndp[i,3]<-ndgamma[i,3]-ndgamma[i,2]}
for(i in 1:30){ndp[i,4]<-ndgamma[i,4]-
ndgamma[i,3]}
for(i in 1:30){ndy[i]~dcat(ndp[i,1:5])}
for(i in 1:30){ndp[i,5]<-1-ndgamma[i,4]}
# intercept depends on y
for(i in 1:30){
ndmu[i]<-ndb0[ndy[i]]+ ndx1[i]*ndb[1]+ndx2[i]*ndb[2]+ndx3[i]*ndb[3]}
for(i in 1:3){ndb[i]~dnorm(0,.001)}
for(i in 1:5){ndb0[i]~dnorm(0,.001)}
ndtheta[1]~dnorm(0,1)
ndtheta[2]~dnorm(0,1)
ndtheta[3]~dnorm(0,1)
ndtheta[4]~dnorm(0,1)
ndtheta[5]~dnorm(0,1)I(ndtheta[4],)
for( i in 1:5){ndq[i]<-mean(ndp[,i])}
# diseased population
for(i in 1:50){for(j in 1:5){logit(dgamma[i,j])<-dtheta[j]-dmu[i]}}
for(i in 1:50){dp[i,1]<-dgamma[i,1]}
for(i in 1:50){dp[i,2]<-dgamma[i,2]-
dgamma[i,1]}
for(i in 1:50){dp[i,3]<-dgamma[i,3]-
dgamma[i,2]}
for(i in 1:50){dp[i,4]<-dgamma[i,4]-
dgamma[i,3]}
for(i in 1:50){dy[i]~dcat(dp[i,1:5])}
for(i in 1:50){dp[i,5]<-1-dgamma[i,4]}
# intercept depends on y
for(i in 1:50){
dmu[i]<-db0[dy[i]]+ dx1[i]*db[1]+dx2[i]*db[2]+dx3[i]*db[3]}
for(i in 1:3){db[i]~dnorm(0,.001)}
for(i in 1:5){db0[i]~dnorm(0,.001)}
dthe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c(0,0,0,0,0))
BUGS CODE 8.2
model;
{
# nonlinear regression of PCB on cube root of age
for( i in 1:N){ y[i]~dnorm(vu[i], tauy)}
for( i in 1:N){vu[i]<-exp(beta[1]+beta[2]*x[i])}
# predicted values of PCB
for( i in 1:N){ u[i]~dnorm(vu[i], tauy)}
# linear regression of log PCB on cube root of age
for( i in 1:N){ z[i]~dnorm(mu[i], tau)}
# z is natural log of y
for( i in 1:N){ z[i]<-log(y[i])}
for( i in 1:N){mu[i]<-theta[1]+theta[2]*x[i]}
# x is the cube root of age
for( i in 1:N){x[i]<-pow(age[i],.333)}
# prior distribution of the beta
for( i in 1:2){beta[i]~dnorm(0.000,0.0001)}
for( i in 1:2){theta[i]~dnorm(0.000,0.0001)}
# prior distribution for tau
tau~dgamma(.0001,.0001)
tauy~dgamma(.0001,.0001)
# predicted values of log PCB
for( i in 1:N){ w[i]~dnorm(mu[i], tau)}
# sigma is the inverse of the precision tau
sigma<-1/tau
}
# PCB data
list(N=28,
y =c(.6,1.6,.5,1.2,2,1.3,2.5,2.2,2.4,1.2,3.5,4.1,5.1,5.7,3.4,9.7,8.6,
4.0,5.5,10.5,17.5,13.4,4.5,30.4,12.4,13.4,26.2,7.4),
age=c(1,1,1,1,2,2,2,3,3,3,4,4,4,5,6,6,6,7,7,7,8,8,8,9,11,12,12,12))
# initial values
list( beta=c(0,0), theta=c(0,0), tauy=1,tau=1)
BUGS CODE 8.3
model;
{
# nonlinear regression of BOD on time
#for( i in 1:N){ y[i]~dnorm(mu[i], tau)}
#for( i in 1:N){mu[i]<-theta[1]*(1-exp(-theta[2]*x[i]))}
# predicted values of BOD
#for( i in 1:N){ w[i]~dnorm(mu[i], tau)}
# prior distributions
#theta[1]~ dnorm(1,.001)
#theta[2]~ dnorm(1, .001)
# tau~dgamma(.001,.001)
# regression of chlorine concentration on time
for( i in 1:N){y[i]~dnorm(mu[i], tau)}
for( i in 1:N){mu[i]<-theta[1]*(1-exp(-theta[2]*x[i]))}
# predicted chlorine values
for( i in 1:N){ w[i]~dnorm(mu[i], tau)}
# prior distributions
theta[1]~ dnorm( 1, .001)
theta[2]~ dnorm( 1, .001)
tau~dgamma(.01,.01)
}
# BOD data
list( y=c(8.3,10.3,19,16,15.6,19.8),
x=c(1,2,3,4,5,7),N= 6)
# initial values BOD
list(tau=1, theta=c(20,.24))
# chlorine concentration
list( N=54,
y=c(17.3,17.6,17.9,18.3,18.5,18.9,19,19.3,19.8,19.9,20.2,
20.5,20.6,21.1,21.5,21.9,22,22.3,22.6,22.8,23.0,23.2,
23.4,23.7,24,24.2,24.5,25,25.4,25.5,25.9,25.9,26.3,26.2,
26.5,26.5,26.6,27,27,27,27,27.3,27.8,28.1,28.1,28.1,28.4,
28.6,29,29.2,29.3,29.4,29.4, 29.4),
x=c(2.45,2.55,2.65,2.75,2.85,2.95,3.05,3.15,3.25,3.35,3.45,3.55,
3.65,3.75,3.85,3.95,4.05,4.15,4.25,4.35,4.45,4.55,4.65,4.75,
4,85,4.95,5.05,5.15,5.25,5.35,5.45,5.55,5.65,5.75,5.85,5.95,
6.05,6.15,6.25,6.35,6.45,6.55,6.65,6.75,6.85,6.95,7.05,
7.15,7.25,7.35,7.45,7.55,7.65,7.75))
# initial values chlorine
list( theta=c(0,0), tau=1)
BUGS CODE 8.4
model;
{
for(i in 1:n){for(j in 1:p){y[i,j]~dnorm(mu[i,j],tau)}}
for(i in 1:n){for(j in 1:p){mu[i,j]<- theta+alpha[i]+beta[j]}}
for(i in 1:n){alpha[i]~dnorm(0,tau.alpha)}
for(j in 1:p){beta[j]~dnorm(0,tau.beta)}
for(i in 1:n){for(j in 1:p){z[i,j]~dnorm(mu[i,j],tau)}}
# prior distributions
theta~dnorm(0,.0001)
tau.alpha~dgamma(.0001,.0001)
tau.beta~dgamma(.0001,.0001)
tau~dgamma(.0001,.0001)
sigma.alpha<-1/tau.alpha
sigma.beta<-1/tau.beta
sigma<-1/tau
}
# example with placebo group only
list(n=26, p=5, y=structure(.Data=
c(20,19,20,20,18,
14,15,16,9,6,
7,5,8,8,5,
6,10,9,10,10,
9,7,9,4,6,
9,10,9,11,11,
7,3,7,6,3,
18,20,20,23,21,
6,10,10,13,14,
10,15,15,15,14,
5,9,7,3,12,
11,11,8,10,9,
10,2,9,3,2,
17,12,14,15,13,
16,15,13,7,9,
7,10,4,10,5,
5,0,5,0,0,
16,7,7,6,10,
5,6,9,5,6,
2,1,1,2,2,
7,11,7,5,11,
9,16,17,10,6,
2,5,6,7,6,
7,3,5,5,5,
19,13,19,17,17,
7,5,8,8,6),.Dim=c(26,5)))
# initial values
list(alpha=c(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0),
beta=c(0,0,0,0,0), tau.alpha=1, tau.beta=1, tau=1, theta=0)
BUGS CODE 8.6
model;
{
for(j in 1 : N) {
for(k in 1 : T) {
log(mu[j, k]) <- a0 + alpha.Base * (Base4[j] - Base4.bar)
+ alpha.Trt * (Trt[j] - Trt.bar)
+ alpha.Age * (Age[j] - Age.bar) +b1[j]+b2[k]
# the following is the Poisson regression model
y[j,k] ~ dpois(mu[j,k])
# z are the predicted values of y
z[j,k]~dpois(mu[j,k])
}
# the basline measurement is divide by 4
Base4[j] <-(Base[j] / 4)
}
# covariate means:
Age.bar <- mean(Age[])
Trt.bar <- mean(Trt[])
Base4.bar <- mean(Base4[])
# priors:
for(j in 1:N){b1[j]~dnorm(0,taub1) }
for(k in 1:T){b2[k]~dnorm(0,taub2) }
a0 ~ dnorm(0.0,1.0E-4)
alpha.Base ~ dnorm(0.0,1.0E-4)
alpha.Trt ~ dnorm(0.0,1.0E-4);
taub1~dgamma(.0001,.0001)
taub2~dgamma(.0001,.0001)
alpha.Age ~ dnorm(0.0,1.0E-4)
sigmab1<-1/taub1
sigmab2<-1/taub2
}
# Epileptic information
list(N = 59, T = 4,
y = structure(.Data = c( 5, 3, 3, 3,
3, 5, 3, 3,
2, 4, 0, 5,
4, 4, 1, 4,
7, 18, 9, 21,
5, 2, 8, 7,
6, 4, 0, 2,
40, 20, 21, 12,
5, 6, 6, 5,
14, 13, 6, 0,
26, 12, 6, 22,
12, 6, 8, 4,
4, 4, 6, 2,
7, 9, 12, 14,
16, 24, 10, 9,
11, 0, 0, 5,
0, 0, 3, 3,
37, 29, 28, 29,
3, 5, 2, 5,
3, 0, 6, 7,
3, 4, 3, 4,
3, 4, 3, 4,
2, 3, 3, 5,
8, 12, 2, 8,
18, 24, 76, 25,
2, 1, 2, 1,
3, 1, 4, 2,
13, 15, 13, 12,
11, 14, 9, 8,
8, 7, 9, 4,
0, 4, 3, 0,
3, 6, 1, 3,
2, 6, 7, 4,
4, 3, 1, 3,
22, 17, 19, 16,
5, 4, 7, 4,
2, 4, 0, 4,
3, 7, 7, 7,
4, 18, 2, 5,
2, 1, 1, 0,
0, 2, 4, 0,
5, 4, 0, 3,
11, 14, 25, 15,
10, 5, 3, 8,
19, 7, 6, 7,
1, 1, 2, 3,
6, 10, 8, 8,
2, 1, 0, 0,
102, 65, 72, 63,
4, 3, 2, 4,
8, 6, 5, 7,
1, 3, 1, 5,
18, 11, 28, 13,
6, 3, 4, 0,
3, 5, 4, 3,
1, 23, 19, 8,
2, 3, 0, 1,
0, 0, 0, 0,
1, 4, 3, 2), .Dim = c(59, 4)),
Trt = c( 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
1, 1, 1, 1, 1, 1, 1, 1, 1),
Base = c( 11, 11, 6, 8, 66, 27, 12, 52, 23, 10,
52, 33, 18, 42, 87, 50, 18,111, 18, 20,
12, 9, 17, 28, 55, 9, 10, 47, 76, 38,
19, 10, 19, 24, 31, 14, 11, 67, 41, 7,
22, 13, 46, 36, 38, 7, 36, 11,151, 22,
41, 32, 56, 24, 16, 22, 25, 13, 12),
Age = c(31,30,25,36,22,29,31,42,37,28,
36,24,23,36,26,26,28,31,32,21,
29,21,32,25,30,40,19,22,18,32,
20,30,18,24,30,35,27,20,22,28,
23,40,33,21,35,25,26,25,22,32,
25,35,21,41,32,26,21,36,37))
list(a0 = 1, alpha.Base = 0, alpha.Trt = 0,
alpha.Age = 0, taub1=1,taub2=1)
BUGS CODE 8.7
model {
# Likelihood
for (i in 1 : N) {
O[i] ~ dpois(mu[i])
log(mu[i]) <- log(E[i]) + alpha0 + alpha1 * X[i]/10 + b[i]
# predicted cases u[i] ~ dpois(mu[i])
# Area-specific relative risk (for maps)
RR[i] <- exp(alpha0 + alpha1 * X[i]/10 + b[i])
}
# CAR prior distribution for random effects:
b[1:N] ~ car.normal(adj[], weights[], num[], tau)
for(k in 1:sumNumNeigh) {
weights[k] <- 1
}
# Other priors:
alpha0 ~ dflat()
alpha1 ~ dnorm(0.0, 1.0E-5)
tau ~ dgamma(0.5, 0.0005) # prior on precision
sigma <- sqrt(1 / tau) # standard deviation
b.mean <- sum(b[])
}
# lip cancer
list(N = 56,
O = c( 9, 39, 11, 9, 15, 8, 26, 7, 6, 20,
13, 5, 3, 8, 17, 9, 2, 7, 9, 7,
16, 31, 11, 7, 19, 15, 7, 10, 16, 11,
5, 3, 7, 8, 11, 9, 11, 8, 6, 4,
10, 8, 2, 6, 19, 3, 2, 3, 28, 6,
1, 1, 1, 1, 0, 0),
E = c( 1.4, 8.7, 3.0, 2.5, 4.3, 2.4, 8.1, 2.3, 2.0, 6.6,
4.4, 1.8, 1.1, 3.3, 7.8, 4.6, 1.1, 4.2, 5.5, 4.4,
10.5,22.7, 8.8, 5.6,15.5,12.5, 6.0, 9.0,14.4,10.2,
4.8, 2.9, 7.0, 8.5,12.3,10.1,12.7, 9.4, 7.2, 5.3,
18.8,15.8, 4.3,14.6,50.7, 8.2, 5.6, 9.3,88.7,19.6,
3.4, 3.6, 5.7, 7.0, 4.2, 1.8),
X = c(16,16,10,24,10,24,10, 7, 7,16,
7,16,10,24, 7,16,10, 7, 7,10,
7,16,10, 7, 1, 1, 7, 7,10,10,
7,24,10, 7, 7, 0,10, 1,16, 0,
1,16,16, 0, 1, 7, 1, 1, 0, 1,
1, 0, 1, 1,16,10),
num = c(3, 2, 1, 3, 3, 0, 5, 0, 5, 4,
0, 2, 3, 3, 2, 6, 6, 6, 5, 3,
3, 2, 4, 8, 3, 3, 4, 4, 11, 6,
7, 3, 4, 9, 4, 2, 4, 6, 3, 4,
5, 5, 4, 5, 4, 6, 6, 4, 9, 2,
4, 4, 4, 5, 6, 5
),
adj = c(
19, 9, 5,
10, 7,
12,
28, 20, 18,
19, 12, 1,
17, 16, 13, 10, 2,
29, 23, 19, 17, 1,
22, 16, 7, 2,
5, 3,
19, 17, 7,
35, 32, 31,
29, 25,
29, 22, 21, 17, 10, 7,
29, 19, 16, 13, 9, 7,
56, 55, 33, 28, 20, 4,
17, 13, 9, 5, 1,
56, 18, 4,
50, 29, 16,
16, 10,
39, 34, 29, 9,
56, 55, 48, 47, 44, 31, 30, 27,
29, 26, 15,
43, 29, 25,
56, 32, 31, 24,
45, 33, 18, 4,
50, 43, 34, 26, 25, 23, 21, 17, 16, 15, 9,
55, 45, 44, 42, 38, 24,
47, 46, 35, 32, 27, 24, 14,
31, 27, 14,
55, 45, 28, 18,
54, 52, 51, 43, 42, 40, 39, 29, 23,
46, 37, 31, 14,
41, 37,
46, 41, 36, 35,
54, 51, 49, 44, 42, 30,
40, 34, 23,
52, 49, 39, 34,
53, 49, 46, 37, 36,
51, 43, 38, 34, 30,
42, 34, 29, 26,
49, 48, 38, 30, 24,
55, 33, 30, 28,
53, 47, 41, 37, 35, 31,
53, 49, 48, 46, 31, 24,
49, 47, 44, 24,
54, 53, 52, 48, 47, 44, 41, 40, 38,
29, 21,
54, 42, 38, 34,
54, 49, 40, 34,
49, 47, 46, 41,
52, 51, 49, 38, 34,
56, 45, 33, 30, 24, 18,
55, 27, 24, 20, 18
),
sumNumNeigh = 234)
# initial values
list(tau = 1, alpha0 = 0, alpha1 = 0,
b=c(0,0,0,0,0,NA,0,NA,0,0,
NA,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0,0,0,0,0,
0,0,0,0,0,0),
u=c(1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1))
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment