Hello, Further to my previous e-mail, I think I know why I am having problems with the initialization of model parameters in R2WinBUGS. My model.bug file contains a portion of code which defines some pairwise odds ratios (e.g., or[1,2], or[1,3], or[1,4], or[2,3], or[2,4], or[3,4]) as seen below:
for (c in 1:(NT-1)) { for (k in (c+1):NT) { or[c,k] <- log(d[k] - d[c]) } } Apparently, R2WinBUGS can't recognize these values because they form an incomplete matrix. In trying to solve this issue, I arrived at the conclusion that R2WinBUGS may not be able to recognize WinBUGS parameters specified as a matrix (be it complete or incomplete). Is my understanding correct? Any thoughts on how to overcome this predicament would be greatly appreciated. (Thank you very much to Peter Alspach for helping me to narrow down this problem.) Many thanks! Isabella Isabella R. Ghement, Ph.D. Ghement Statistical Consulting Company 301-7031 Blundell Road, Richmond, B.C., Canada, V6Y 1J5 Tel: 604-767-1250 Fax: 604-270-3922 E-mail: [EMAIL PROTECTED] Web: [2]www.ghement.ca References 1. mailto:[EMAIL PROTECTED] 2. http://www.ghement.ca/ ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.