piv_plot | R Documentation |
Plot and visualize MCMC outputs and posterior relabelled chains/estimates.
piv_plot( y, mcmc, rel_est, par = c("mean", "sd", "weight", "all"), type = c("chains", "hist") )
y |
Data vector or matrix. |
mcmc |
The ouptut of the raw MCMC sampling, as provided by |
rel_est |
Pivotal estimates as provided by |
par |
The parameters for which estimates are displayed. Choose among: |
type |
Type of plots required. Choose among: |
Leonardo Egidi legidi@units.it
# Fishery data ## Not run: library(bayesmix) data(fish) y <- fish[,1] N <- length(y) k <- 5 nMC <- 5000 res <- piv_MCMC(y = y, k = k, nMC = nMC) rel <- piv_rel(mcmc=res, nMC = nMC) piv_plot(y, res, rel, "chains") piv_plot(y, res, rel, "estimates") piv_plot(y, res, rel, "hist") ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.