Learn R Programming

CCMnet (version 0.1.4)

CCM_traceplot: Plot MCMC Trace for sample_ccm

Description

CCM_traceplot produces a trace plot of the MCMC samples from sample_ccm. This is used to diagnose convergence and mixing.

Usage

CCM_traceplot(object, stats = NULL, ...)

Value

A trace plot for the selected MCMC chain.

Arguments

object

A ccm_sample object.

stats

string. Which statistic to plot.

...

Additional arguments passed to plot().

Examples

Run this code
ccm_sample <- sample_ccm(
  network_stats = list("edges"),
  prob_distr = list("poisson"),
  prob_distr_params = list(list(350)),
  population = 50 
)
CCM_traceplot(ccm_sample, stats = "edges")

Run the code above in your browser using DataLab