plot.metropolis {FAmle} | R Documentation |
A Function to Plot metropolis objects
Description
This function allows to user to call different plots for visual assessment of the posterior distribution(s).
Usage
## S3 method for class 'metropolis'
plot(x, plot.type = "carlin", pos = 1:x$iter, ...)
Arguments
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 |
References
See list of references for metropolis
.
See Also
Examples
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')
[Package FAmle version 1.3.7 Index]