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

From: Uwe Ligges <ligges_at_statistik.uni-dortmund.de>
Date: Fri, 29 Feb 2008 18:54:56 +0100

He, Yulei wrote:
> 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.

Hi,

which version of R2WinBUGS do you use?
Does your version already support that arguments (bugs.seed, etc.)? I guess not.

Please upgrade both, R (version 2.6.2 is current) and R2WInBUGS!

Uwe Ligges

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


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 - 18:09:50 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