View source: R/print.metropolis.R
| print.metropolis | R Documentation | 
See metropolis.
## S3 method for class 'metropolis' print(x, stats.fun = NULL,...)
| x | 
 | 
| stats.fun | An optional function that may be provided by the user in order to obtain a posterior summary (see Example). | 
| ... | none... | 
metropolis, print
data(yarns) x <- yarns$x fit.x <- mle(x,'gamma',c(.1,.1)) bayes.x <- metropolis(fit.x,50,trans.list= list(function(x) exp(x), function(x) exp(x))) print(bayes.x) print(bayes.x,stats.fun=function(x) c(mean=mean(x),CV=sd(x)/mean(x)))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.