Re: [R] error calling Winbugs using R2WinBugs to run a multi-level model

2012-06-07 Thread Saana Isojunno
Thanks for the suggestions! Unfortunately I get same trap whether I input the data as a named list, list of the names, or text file. I tried the three with and without transposing the matrices (I didn't change the model structure indexing but this should appear as an indexing error later on).

[R] error calling Winbugs using R2WinBugs to run a multi-level model

2012-06-06 Thread Saana Isojunno
Dear all, I'm calling Winbugs (1.4.3) through R2WinBugs (2.1-18 coda_0.14-7) to fit a switching random walk model, but come up with an instant trap with the log only displaying 'check('. I will paste the trap with session info below; I'd be very grateful for any ideas. Couple of leads: 1. I

Re: [R] error calling Winbugs using R2WinBugs to run a multi-level model

2012-06-06 Thread ilai
Untested because I don't have (use) winbugs and you didn't provide dat*. But consider a - 4 ; f - 6 list('a','f') list(a,f) list(a=a,f=f) My guess is you wanted sp.data to be a named list, not a list of names... HTH On Wed, Jun 6, 2012 at 4:12 AM, Saana Isojunno saana.isoju...@googlemail.com

Re: [R] error calling Winbugs using R2WinBugs to run a multi-level model

2012-06-06 Thread Uwe Ligges
On 06.06.2012 16:51, ilai wrote: Untested because I don't have (use) winbugs and you didn't provide dat*. But consider a- 4 ; f- 6 list('a','f') list(a,f) list(a=a,f=f) My guess is you wanted sp.data to be a named list, not a list of names... That's also OK, from ?bugs.data: data: either