renameMCMC {compareMCMCs}R Documentation

Rename an MCMC method throughout a list of MCMCresult objects

Description

This is useful because an MCMC method name appears in multiple places

Usage

renameMCMC(MCMCresult, newName, oldName)

Arguments

MCMCresult

One or a named list of MCMCresult objects, such as returned by compareMCMCs.

newName

A new (replacement) name for one of the MCMC method names

oldName

An old (existing) name for one of the MCMC method names

Details

This replaces the MCMC label oldName with newName anywhere they appear in the MCMCresult list. This includes various places in the metrics elements of the MCMCresult objects.

If oldName is omitted, MCMCresult must be a single MCMCresult object, in which the existing MCMC method name will be replaced by newName. Hence oldName is only necessary if MCMCresult is a list of MCMCresult objects.


[Package compareMCMCs version 0.5.0 Index]