Dear Mailing List,
I want to model repeated disease occurences within 8 subjects. I have
copied the code below. Data has been entered in ragged arrays and an
example is given below too. I cannot compile the program and get the error
message: Variable not defined or not data for the predictors in the model.
I have tried to reduce the number of observations to 9 for each subject in
order to reduce the number of missing observations for each subject without
any success. At this point in time the data collection procedure has not
yet been completed. I have also tried to nest the observations within each
subject id also without any success. Can someone give me a hint about what
I am doing wrong here?
Thanks
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],S[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] # logit model
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
|