Skip to content
Prev 77689 / 398503 Next

R2WinBUGS: Data loading error

Hadassa Brunschwig wrote:

            
Which versions of R, WinBUGS and R2WinBUGS?
Your example is not reproducible for us.

I'd take a look whether dimensions are OK and whether subsetA$concentr 
is in appropriate object, but without data and model file I am unable to 
help for the data part.


For the inits part, please see ?bugs:

inits: a list with n.chains elements; each element of the list is itself 
a list of starting values for the WinBUGS model, or a function creating 
(possibly random) initial values. Alternatively, if inits = NULL, 
initial values are generated by WinBUGS

Looks like you want to have the same inits for each chain. In order not 
to repeat the inits 7 times, you might want to specify them simply as a 
function such as:

  inits <- function(){
    list(tau = rep(1, 17), C0 = 5, st90 = 4, C0.pop = 5, st90.pop = 4,
         tau.cpop = 0.2, tau.stpop = 1)
  }


Uwe Ligges


[Further correspondence on this particular topic, please respond to to 
the package maintainer (Sibylle) and me directly rather than to R-help.]