piv_plot {pivmet} | R Documentation |
Plotting outputs from pivotal relabelling
Description
Plot and visualize MCMC outputs and posterior relabelled chains/estimates.
Usage
piv_plot(
y,
mcmc,
rel_est,
par = c("mean", "sd", "weight", "all"),
type = c("chains", "hist")
)
Arguments
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: |
Author(s)
Leonardo Egidi legidi@units.it
Examples
# 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)
[Package pivmet version 0.6.0 Index]