[R] problem in R

Uwe Ligges ligges at statistik.tu-dortmund.de
Tue Jan 6 19:53:06 CET 2015

On 05.01.2015 18:03, thanoon younis wrote:
> Dear all R members
> I have a problem in the R when i wanted to call winbugs as following
> #Input data set for WinBUGS
>      thd18 <-read.table("C:/Users/hp/Desktop/thd18.txt")
>      #Input data set for WinBUGS
>      data<-list(N1=2000,N2=2000,P=9,R=Ro,z1=yo1,z2=yo2,thd18)

thd18 is a data.frame but WinBUGS does not know about a data.frame. You 
probably want to convert to a matrix first.

Uwe Ligges

> #Call WinBUGS
>      model<-bugs (data,inits,parameters,model.file="D:/Run/model.txt",
>      n.chains=2,n.iter=5000,n.burnin=1000,n.thin=1,DIC=TRUE,
>      bugs.directory="c:/Program Files/WinBUGS14/",
>      working.directory="D:/Run/")
> and the problem is
> Error in is.finite(x) : default method not implemented for type 'list'
> Any guidance would be highly appreciated

More information about the R-help mailing list