Learn R Programming

bayou (version 2.1.1)

gelman.R: Calculate Gelman's R statistic

Description

Calculate Gelman's R statistic

Usage

gelman.R(parameter, chain1, chain2, freq = 20, start = 1, plot = TRUE,
  ...)

Arguments

parameter

The name or number of the parameter to calculate the statistic on

chain1

The first bayouMCMC chain

chain2

The second bayouMCMC chain

freq

The interval between which the diagnostic is calculated

start

The first sample to calculate the diagnostic at

plot

A logical indicating whether the results should be plotted

...

Optional arguments passed to gelman.diag(...) from the coda package