[R] bugs.seed= and summary.only= option in R2WinBUGS

From: He, Yulei <he_at_hcp.med.harvard.edu>
Date: Fri, 29 Feb 2008 09:19:02 -0500


Dear R user:  

I am using R2WinBUGs to call WinBUGS from R. But I have some problems in using either the option bugs.seed and summary.only in the function bugs. Here are the programs and error messages. It appears that if I don't use either option, the program runs fine. I am using R2.5.1 and WinBUGs14.        

The program is not running:  

> schools.sim <- bugs(data, inits, parameters, model.file,

+ n.chains=3, n.iter=5000, bugs.seed=100,

+ bugs.directory="c:/Program Files/WinBUGS14/",

+ working.directory=NULL, clearWD=TRUE)

Error in bugs(data, inits, parameters, model.file, n.chains = 3, n.iter = 5000, :

        unused argument(s) (bugs.seed = 100)  

The program is not running:  

> schools.sim <- bugs(data, inits, parameters, model.file,

+ n.chains=3, n.iter=5000, summary.only=TRUE,

+ bugs.directory="c:/Program Files/WinBUGS14/",

+ working.directory=NULL, clearWD=TRUE)

Error in bugs(data, inits, parameters, model.file, n.chains = 3, n.iter = 5000, :

        unused argument(s) (summary.only = TRUE)  

The program is not running;  

> schools.sim <- bugs(data, inits, parameters, model.file,

+ n.chains=3, n.iter=5000, summary.only=FALSE,

+ bugs.directory="c:/Program Files/WinBUGS14/",

+ working.directory=NULL, clearWD=TRUE)

Error in bugs(data, inits, parameters, model.file, n.chains = 3, n.iter = 5000, :

        unused argument(s) (summary.only = FALSE)    

The program is running:

> schools.sim <- bugs(data, inits, parameters, model.file,

+ n.chains=3, n.iter=5000,

+ bugs.directory="c:/Program Files/WinBUGS14/",

+ working.directory=NULL, clearWD=TRUE)
   

Thanks for your help!  

Yulei  

        [[alternative HTML version deleted]]



R-help_at_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. Received on Fri 29 Feb 2008 - 14:47:23 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 29 Feb 2008 - 18:30:17 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive