Learn R Programming

bayesnec (version 2.1.3.0)

check_chains: Checking chain convergence

Description

Plots HMC chains for a bayesnecfit or bayesmanecfit model fit as returned by bnec.

Usage

check_chains(x, ...)

# S3 method for bayesnecfit check_chains(x, ...)

# S3 method for bayesmanecfit check_chains(x, filename = NA, ...)

Value

No return value, generates a plot or writes a pdf to file.

Arguments

x

An object of class bayesnecfit or bayesmanecfit as returned by bnec.

...

Unused.

filename

An optional character vector to be used as a pdf filename in the case of a bayesmanecfit. Any non empty character string will indicate the user wants to save the plots.

Examples

Run this code
if (FALSE) {
library(bayesnec)
check_chains(manec_example)
nec4param <- pull_out(manec_example, model = "nec4param")
check_chains(nec4param)
}

Run the code above in your browser using DataLab