Dear BUGS users
For some reason the data file was not included in my last mail. I want to
model repeated observations of disease occurences. The model will work with
equal number of observations for all subjects. However, I have unequal
number of observations in my final data set. Is there any way to solve that
problem? I have seen the solution in the lips example, but I am not sure
about how to implement this in my model.
Thanks in advance.
Niels Peter Baadsgaard
model
{
for( i in 1 : N ) { # no of subjects
for( t in 1 : T ) { # max no of measurements collected
r1[i,t] ~ dbin(p[i,t],N[i,t])
b[i] ~ dnorm(Mu,Tau)
logit(p[i,t]) <-
beta1*ss1[i,t]+beta2*ss2[i,t]+beta3*ss3[i,t]+beta4*ss4[i,t]+beta5*prl1[i,t]+
b[i]
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|