Re: [R] Using WinBUGS from R: A Multi-Way Array Problem

2009-06-04 Thread Greg Snow
are greg.s...@imail.org 801.408.8111 > -Original Message- > From: r-help-boun...@r-project.org [mailto:r-help-boun...@r- > project.org] On Behalf Of Khurram Nadeem > Sent: Wednesday, June 03, 2009 11:37 PM > To: r-help@r-project.org > Subject: [R] Using WinBUGS from R: A Multi-W

[R] Using WinBUGS from R: A Multi-Way Array Problem

2009-06-03 Thread Khurram Nadeem
Please suggest a way out to the following problem. I have a T by n data matrix (say Y) where coulmns are time series of length T. To do some analysis in WinBUGS I need to construct my data as follows. yy<-rep(Y,k) ## this will be a vector Yk<-array(yy,dim=c(T,n,k)) ## data array Here the definit