Learn R Programming

BAMBI (version 2.3.5)

plot.angmcmc: Summary plots for angmcmc objects

Description

Summary plots for angmcmc objects

Usage

# S3 method for angmcmc
plot(
  x,
  par.name,
  comp.label,
  chain.no,
  do.paramtrace = TRUE,
  do.lpdtrace = TRUE,
  use.llik = FALSE,
  ...
)

Arguments

x

angmcmc object

par.name

vector of names of parameters for which point estimates are to be computed. If NULL, results for all parameters are provided.

comp.label

vector of component labels (positive integers, e.g., 1, 2, ...) for which point estimates are to be computed. If NULL, results for all components are provided.

chain.no

vector of chain numbers whose samples are to be be used. in the estimation. By default all chains are used.

do.paramtrace

logical. Should the trace(s) for the parameter(s) be plotted?

do.lpdtrace

logical. Should the log posterior trace be plotted?

use.llik

logical. Should the log likelihood be plotted instead? Ignored if do.lpdtrace == FALSE.

...

unused

Examples

Run this code
# first fit a vmsin mixture model
# illustration only - more iterations needed for convergence
fit.vmsin.20 <- fit_vmsinmix(tim8, ncomp = 3, n.iter =  20,
                             n.chains = 1)
plot(fit.vmsin.20)

Run the code above in your browser using DataLab