bugs.seed= and summary.only= option in R2WinBUGS

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

bugs.seed= and summary.only= option in R2WinBUGS

He, Yulei
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]]

______________________________________________
[hidden email] 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 | Threaded
Open this post in threaded view
|

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

Uwe Ligges


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]]
>
> ______________________________________________
> [hidden email] 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.

______________________________________________
[hidden email] 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.