Description Usage Arguments Value Author(s) See Also Examples
Converts a bugs
object to an mcmc
object.
1 2 | ## S3 method for class 'bugs'
as.mcmc(x, ...)
|
x |
|
... |
unused |
If x
contains multiple chains, the function returns an mcmc.list
object. Otherwise, the function returns an mcmc
object.
S. McKay Curtis
bugs
in R2WinBUGS
1 2 3 4 5 6 7 8 9 10 | ## Not run:
## Data object "schools.sim" generated from the examples
## in the bugs function of the R2WinBUGS package.
outmcmc <- as.mcmc(schools.sim)
## Gelman Rubin diagnostics
:gelman.diag(outmcmc)
:mcmc.plot(outmcmc)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.