Dear all Rusers I have error when i wanted to call winbugs from R to estamate parameters using bayesian analysis.
#Call WinBUGS model<-bugs(data1,data2,init1,init2,parameters,model.file="D:/Run/model.txt", n.chains=2,n.iter=10000,n.burnin=4000,n.thin=1,DIC=True, bugs.directory="c:/Program Files/WinBUGS14/", working.directory="D:/Run/") and the error is #Call WinBUGS > model<-bugs(data1,data2,init1,init2,parameters,model.file="D:/Run/model.txt", + n.chains=2,n.iter=10000,n.burnin=4000,n.thin=1,DIC=True, + bugs.directory="c:/Program Files/WinBUGS14/", + working.directory="D:/Run/") Error in bugs(data1, data2, init1, init2, parameters, model.file = "D:/Run/model.txt", : Number of initialized chains (length(inits)) != n.chains any help would be greatly appreciated -- Thanoon Y. Thanoon PhD Candidate Department of Mathematical Sciences Faculty of Science University Technology Malaysia, UTM E.Mail: thanoon.youni...@gmail.com E.Mail: dawn_praye...@yahoo.com Facebook:Thanoon Younis AL-Shakerchy Twitter: Thanoon Alshakerchy H.P:00601127550205 [[alternative HTML version deleted]] ______________________________________________ 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.