Hi All,
 
As part of a larger analysis I want to sample from a MVN distribution with zero means and standard deviations. This gives me an error message stating that 'an  argument of Sqrt should not be negative'. This problem does not emerge when I simply sample from the prior (thus ommiting the first two lines in the model), or when I reduce the problem to a bivariate normal case.
 
any suggestions what might be going wrong here?
 
regards
 
Stefan
 
model{
for(i in 1:5){
sample[i,1:5] ~ dmnorm(mean0[],tau[,]) }
 
for(a in 1:5){
sigma[a,a]<-1}
sigma[1,2]~dnorm(0,1)I(-1,1)
sigma[2,1]<-sigma[1,2]
sigma[1,3]~dnorm(0,1)I(-1,1)
sigma[3,1]<-sigma[1,3]
sigma[1,4]~dnorm(0,1)I(-1,1)
sigma[4,1]<-sigma[1,4]
sigma[1,5]~dnorm(0,1)I(-1,1)
sigma[5,1]<-sigma[1,5]
sigma[2,3]~dnorm(0,1)I(-1,1)
sigma[3,2]<-sigma[2,3]
sigma[2,4]~dnorm(0,1)I(-1,1)
sigma[4,2]<-sigma[2,4]
sigma[2,5]~dnorm(0,1)I(-1,1)
sigma[5,2]<-sigma[2,5]
sigma[3,4]~dnorm(0,1)I(-1,1)
sigma[4,3]<-sigma[3,4]
sigma[3,5]~dnorm(0,1)I(-1,1)
sigma[5,3]<-sigma[3,5]
sigma[4,5]~dnorm(0,1)I(-1,1)
sigma[5,4]<-sigma[4,5]
tau[1:5,1:5]<-inverse(sigma[,])
}
 
 
 
 
 
 
 
 
Prof. Dr. Stefan Van Dongen
Department of Biology - Group of Evolutionary Biology
University of Antwerp
Groenenborgerlaan 171
B-2020 Antwerp
Belgium

personal page: http://www.ua.ac.be/stefan.vandongen
email: [log in to unmask]
Tel: + 32 (0)3 265 33 36
Fax: + 32 (0)3 265 34 74
 
------------------------------------------------------------------- This list is for discussion of modelling issues and the BUGS software. For help with crashes and error messages, first mail [log in to unmask] To mail the BUGS list, mail to [log in to unmask] Before mailing, please check the archive at www.jiscmail.ac.uk/lists/bugs.html Please do not mail attachments to the list. To leave the BUGS list, send LEAVE BUGS to [log in to unmask] If this fails, mail [log in to unmask], NOT the whole list