View source: R/plot.metropolis.R
plot.metropolis | R Documentation |
This function allows to user to call different plots for visual assessment of the posterior distribution(s).
## S3 method for class 'metropolis' plot(x, plot.type = "carlin", pos = 1:x$iter, ...)
x |
|
plot.type |
The user may choose betweew:
|
pos |
May be used by the user to plot a subset (i.e. a random subset, |
... |
Additional arguments pertaining to function |
See list of references for metropolis
.
metropolis
data(yarns) x <- yarns$x fit.x <- mle(x,'gamma',c(.1,.1)) bayes.x <- metropolis(model=fit.x,iter=100, trans.list=list(function(x) exp(x),function(x) exp(x))) plot(bayes.x) plot(bayes.x,'hist',col='cyan') plot(bayes.x,'pairs',cex=.1,pch=19) plot(bayes.x,'pairs',pos=sample(1:bayes.x$iter,20),col='red') plot(bayes.x,'post.pred',col='green')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.