You solved my problem, thank you. As you said it's the type of the content in the matrix that caused the problem. I needed to put variable x along with other variables to the list, somehow it turned out that x must be used in form of character in the statement: dat <- list("x","otherVariables")
Anyway, my codes work well now. Thanks for your help. -- View this message in context: http://r.789695.n4.nabble.com/R2WinBugs-data-import-error-tp3164106p3164707.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ 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.