Re: [R] WinBUGS with R

2009-01-20 Thread Frank E Harrell Jr
We are having good success using JAGS and the rjags package. We've put some information at http://biostat.mc.vanderbilt.edu/JAGSInstallExample for linux. It's nice to have a native linux executable, thanks to Martyn Plummer. For those unfamiliar with JAGS, it uses the BUGS language, i.e., t

Re: [R] WinBUGS with R

2009-01-20 Thread Uwe Ligges
Uwe Ligges wrote: richard.cot...@hsl.gov.uk wrote: I am having some problems using R with WinBUGS using the R2WinBUGS package. Specifically, when I try to run bugs() I get the following message. Error in FUN(X[[1L]], ...) : .C(..): 'type' must be "real" for this format To give a little

Re: [R] WinBUGS with R

2009-01-20 Thread Uwe Ligges
richard.cot...@hsl.gov.uk wrote: I am having some problems using R with WinBUGS using the R2WinBUGS package. Specifically, when I try to run bugs() I get the following message. Error in FUN(X[[1L]], ...) : .C(..): 'type' must be "real" for this format To give a little more context, my bugs

Re: [R] WinBUGS with R

2009-01-20 Thread Richard . Cotton
> I am having some problems using R with WinBUGS using the R2WinBUGS > package. Specifically, when I try to run bugs() I get the following > message. > > Error in FUN(X[[1L]], ...) : > .C(..): 'type' must be "real" for this format > > > > To give a little more context, my bugs() command (for

[R] WinBUGS with R

2009-01-19 Thread Lindsay Stirton
Dear UseRs, I am having some problems using R with WinBUGS using the R2WinBUGS package. Specifically, when I try to run bugs() I get the following message. Error in FUN(X[[1L]], ...) : .C(..): 'type' must be "real" for this format To give a little more context, my bugs() command (for a mu

[R] WinBUGS with R

2008-08-25 Thread BXC (Bendix Carstensen)
Artimon, It seems that you have got the data wrong: The data structure is a list of 4 characters: > list("y","X","n","m") [[1]] [1] "y" [[2]] [1] "X" [[3]] [1] "n" [[4]] [1] "m" And that is hardly what you want, presumably you meant list("y"=y,"X"=X,"n"=n,"m"=m) ??

Re: [R] WinBUGS with R

2008-08-22 Thread Uwe Ligges
artimon wrote: Dear Users, I am new to both of things, so do not blame me too much... I am busy with semiparametric regression and use WinBUGS to sample posteriors. The code to call Winbugs is as follows: data<- list("y","X","n","m") #My variables inits.beta <- rep(0,K) ini

[R] WinBUGS with R

2008-08-22 Thread artimon
Dear Users, I am new to both of things, so do not blame me too much... I am busy with semiparametric regression and use WinBUGS to sample posteriors. The code to call Winbugs is as follows: data<- list("y","X","n","m") #My variables inits.beta <- rep(0,K) inits.beta0 <- 0 i