ConvertResults: Convert Results

Description Usage Arguments Details Value Author(s) See Also

View source: R/plotutils.R

Description

Convert results from pawl and adaptiveMH. The result is a data set that is more convenient to use with "ggplot2" functions.

Usage

1
    ConvertResults(results, verbose)

Arguments

results

Object of class "list": either the output of pawl or of adaptiveMH.

verbose

Object of class "logical": if TRUE (default) then prints some indication of progress in the console.

Details

Essentially it concatenates the parallel chains in a single column, and adds a column with the associated log density values. If more than 1000 parallel chains are used, the function can take some time to return its output.

Value

The function returns an object of class "data.frame", with columns for the chain indices, the chain values, the iteration indices, and the associated log density values.

Author(s)

Luke Bornn <bornn@stat.harvard.edu>, Pierre E. Jacob <pierre.jacob.work@gmail.com>

See Also

adaptiveMH, pawl


PAWL documentation built on May 2, 2019, 5:58 a.m.