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
inits           <- 
function(){list(beta=inits.beta,beta0=inits.beta0,taueps=1.0E-3)}
parameters      <- list("sigma","beta","beta0","y.star")
fitm            <- bugs(data,inits,parameters,model.file="model.bug",
                    n.chains=3, n.iter=n.iter, n.burnin=n.burnin, n.thin = 
n.thin,
                    debug=FALSE,DIC=FALSE,digit=5,codaPkg=FALSE,
                    bugs.directory="C:/Program Files/WinBUGS14/")

but I always get the following error:
Error in FUN(X[[1L]], ...) : 
  .C(..): 'type' must be "real" for this format


I tried the web, but failed. Could anyone give me a clue?
Best!

-- 
View this message in context: 
http://www.nabble.com/WinBUGS-with-R-tp19108557p19108557.html
Sent from the R help mailing list archive at Nabble.com.

______________________________________________
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.

Reply via email to